├── .gitignore ├── LICENSE ├── README.md ├── authelia └── README.md ├── bookstack └── README.md ├── caddy └── README.md ├── changedetection └── README.md ├── code-server └── README.md ├── commento └── README.md ├── dashy └── README.md ├── duckdns └── README.md ├── duplicati └── README.md ├── epicgames-freegames-node └── README.md ├── fail2ban └── README.md ├── filebrowser └── README.md ├── fireflyiii └── README.md ├── freshrss └── README.md ├── home-assistant └── README.md ├── invidious └── README.md ├── kopia └── README.md ├── libreddit └── README.md ├── librespeed └── README.md ├── media-server └── README.md ├── minecraft-server └── README.md ├── monitor-stack └── README.md ├── navidrome └── README.md ├── nextcloud └── README.md ├── paperless-ngx ├── README.md └── docker-compose.env ├── pigallery └── README.md ├── piped └── README.md ├── portainer └── README.md ├── rss-bridge └── docker-compose.yml ├── send └── README.md ├── shiori └── README.md ├── traefik └── README.md ├── umami └── README.md ├── uptime-kuma └── README.md ├── vaultwarden └── README.md ├── wallabag └── README.md ├── watchtower └── README.md └── wg-easy └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | .fidi.env 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # docker-compose 2 | 3 | This repository will serve as documentation for my self-hosted services, it is not intended as a guide for other users, but feel free to use it as a template if you find it useful. You can find some actual guides on my [blog](https://www.fuzzygrim.com/), I have posts on how to host a media server, how to safely expose services to the internet and more. 4 | -------------------------------------------------------------------------------- /authelia/README.md: -------------------------------------------------------------------------------- 1 | # Authelia 2 | 3 | Check my [guide](https://www.fuzzygrim.com/posts/exposing-services) on how to setup Authelia with Traefik. 4 | 5 | ## Docker-compose 6 | 7 | ```yml 8 | version: '3' 9 | 10 | services: 11 | authelia: 12 | image: authelia/authelia 13 | container_name: authelia 14 | volumes: 15 | - /data/authelia:/config 16 | - /data/authelia/log:/var/log/authelia 17 | networks: 18 | - proxy 19 | labels: 20 | - 'traefik.enable=true' 21 | - 'traefik.http.routers.authelia.rule=Host(`auth.domain.com`)' 22 | - 'traefik.http.routers.authelia.entrypoints=https' 23 | - 'traefik.http.routers.authelia.tls=true' 24 | - 'traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.domain.com' 25 | - 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true' 26 | - 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email' 27 | expose: 28 | - 9091 29 | restart: unless-stopped 30 | environment: 31 | - TZ=Europe/Madrid 32 | - PUID=1000 33 | - GUID=1000 34 | healthcheck: 35 | disable: true 36 | networks: 37 | proxy: 38 | external: true 39 | ``` 40 | 41 | ## configuration.yml 42 | 43 | ```yml 44 | --- 45 | ############################################################### 46 | # Authelia configuration # 47 | ############################################################### 48 | 49 | server: 50 | host: 0.0.0.0 51 | port: 9091 52 | log: 53 | level: info 54 | format: text 55 | file_path: /var/log/authelia/authelia.log 56 | theme: dark 57 | # This secret can also be set using the env variables AUTHELIA_JWT_SECRET_FILE 58 | jwt_secret: long_string 59 | default_redirection_url: https://auth.domain.com 60 | totp: 61 | issuer: authelia.com 62 | 63 | authentication_backend: 64 | disable_reset_password: true 65 | file: 66 | path: /config/users_database.yml 67 | password: 68 | algorithm: argon2id 69 | iterations: 1 70 | salt_length: 16 71 | parallelism: 8 72 | memory: 64 73 | 74 | access_control: 75 | default_policy: deny 76 | rules: 77 | - domain: 78 | - "*.domain.com" 79 | policy: one_factor 80 | subject: "group:admins" 81 | 82 | - domain: send.domain.com 83 | policy: two_factor 84 | subject: "user:anon" 85 | 86 | session: 87 | name: authelia_session 88 | # This secret can also be set using the env variables AUTHELIA_SESSION_SECRET_FILE 89 | secret: long_secret 90 | expiration: 8h 91 | inactivity: 2h 92 | domain: domain.com # Should match whatever your root protected domain is 93 | 94 | regulation: 95 | max_retries: 3 96 | find_time: 120 97 | ban_time: 300 98 | 99 | storage: 100 | encryption_key: a_very_important_secret # Now required 101 | local: 102 | path: /config/db.sqlite3 103 | 104 | notifier: 105 | filesystem: 106 | filename: /config/notification.txt 107 | ... 108 | ``` 109 | 110 | ## users_database.yml 111 | 112 | ```yml 113 | --- 114 | ############################################################### 115 | # Users Database # 116 | ############################################################### 117 | 118 | # This file can be used if you do not have an LDAP set up. 119 | 120 | # List of users 121 | users: 122 | username: 123 | displayname: "Your Name" 124 | # Password is Authelia 125 | password: "$argon2id$v=19$m=65536,t=1,p=8$cUI4a0E3L1laYnRDUXl3Lw$ZsdsrdadaoVIaVj8NltA8x4qVOzT+/r5GF62/bT8OuAs" 126 | email: you@example.com 127 | groups: 128 | - admins 129 | - dev 130 | ... 131 | ``` 132 | -------------------------------------------------------------------------------- /bookstack/README.md: -------------------------------------------------------------------------------- 1 | # Bookstack 2 | 3 | ## Docker-Compose 4 | 5 | ```yml 6 | version: "3" 7 | services: 8 | bookstack: 9 | image: lscr.io/linuxserver/bookstack 10 | container_name: bookstack 11 | environment: 12 | - PUID=1000 13 | - PGID=1000 14 | - APP_URL=${URL} 15 | - DB_HOST=bookstack_db 16 | - DB_USER=bookstack 17 | - DB_PASS=${DB_PW} 18 | - DB_DATABASE=bookstackapp 19 | volumes: 20 | - /data/bookstack/config:/config 21 | ports: 22 | - 6875:80 23 | restart: unless-stopped 24 | depends_on: 25 | - bookstack_db 26 | 27 | bookstack_db: 28 | image: lscr.io/linuxserver/mariadb 29 | container_name: bookstack_db 30 | environment: 31 | - PUID=1000 32 | - PGID=1000 33 | - MYSQL_ROOT_PASSWORD=${DB_PW} 34 | - TZ=Europe/Madrid 35 | - MYSQL_DATABASE=bookstackapp 36 | - MYSQL_USER=bookstack 37 | - MYSQL_PASSWORD=${DB_PW} 38 | volumes: 39 | - /data/bookstack/database/config:/config 40 | restart: unless-stopped 41 | ``` -------------------------------------------------------------------------------- /caddy/README.md: -------------------------------------------------------------------------------- 1 | # Caddy 2 | 3 | ## Prerequisites 4 | 5 | Get custom [Caddy build](https://caddyserver.com/download) by selecting cloudflare and download. Make sure the caddy file is executable (`chmod a+x caddy`). 6 | 7 | #### A record config 8 | 9 | Create an API token for the DNS challenge: 10 | 11 | 1. In the upper right, click the person icon and navigate to My Profile, and then select the API Tokens tab. 12 | 2. Click the Create Token button, and then Use template on Edit zone DNS. 13 | 3. Edit the Token name field if you prefer a more descriptive name. 14 | 4. Under Permissions, the Zone / DNS / Edit permission should already be populated. Add another permission: Zone / Zone / Read. 15 | 5. Under Zone Resources, set Include / Specific zone / example.com (replacing example.com with your domain). 16 | 6. Under TTL, set an End Date for when your token will become inactive. You might want to choose one far in the future. 17 | 7. Create the token and copy the token value. 18 | 19 | ## Docker Compose 20 | 21 | ```yml 22 | version: '3' 23 | 24 | services: 25 | caddy: 26 | image: caddy:2 27 | container_name: caddy 28 | restart: always 29 | ports: 30 | - 80:80 31 | - 443:443 32 | volumes: 33 | - ./caddy:/usr/bin/caddy # Your custom build of Caddy. 34 | - ./Caddyfile:/etc/caddy/Caddyfile:ro 35 | - ./caddy-config:/config 36 | - ./caddy-data:/data 37 | environment: 38 | - EMAIL=${email} 39 | - CLOUDFLARE_API_TOKEN=${cloudflare_token} 40 | - LOG_FILE=/data/access.log 41 | ``` 42 | 43 | ## Caddyfile in same path as docker-compose.yml 44 | 45 | ``` 46 | domain:443 { 47 | log { 48 | level INFO 49 | output file {$LOG_FILE} { 50 | roll_size 10MB 51 | roll_keep 10 52 | } 53 | } 54 | 55 | # Use the ACME DNS-01 challenge to get a cert for the configured domain. 56 | tls { 57 | dns cloudflare {$CLOUDFLARE_API_TOKEN} 58 | } 59 | 60 | # This setting may have compatibility issues with some browsers 61 | # (e.g., attachment downloading on Firefox). Try disabling this 62 | # if you encounter issues. 63 | encode gzip 64 | 65 | # Notifications redirected to the WebSocket server 66 | reverse_proxy /notifications/hub 192.168.1.126:3012 67 | 68 | # Proxy everything else to Rocket 69 | reverse_proxy 192.168.1.126:8086 70 | } 71 | 72 | domain:443 { 73 | # Use the ACME DNS-01 challenge to get a cert for the configured domain. 74 | tls { 75 | dns cloudflare {$CLOUDFLARE_API_TOKEN} 76 | } 77 | 78 | reverse_proxy 192.168.1.126:6875 79 | } 80 | ``` 81 | 82 | -------------------------------------------------------------------------------- /changedetection/README.md: -------------------------------------------------------------------------------- 1 | # changedetection.io 2 | 3 | ``` 4 | version: '3.3' 5 | services: 6 | changedetection.io: 7 | restart: always 8 | ports: 9 | - 5000:5000 10 | volumes: 11 | - /data/changedetection:/datastore 12 | container_name: changedetection 13 | image: dgtlmoon/changedetection.io 14 | environment: 15 | - PORT=5000 16 | - PUID=1000 17 | - PGID=1000 18 | - PLAYWRIGHT_DRIVER_URL=ws://playwright-chrome:3000/ 19 | 20 | playwright-chrome: 21 | hostname: playwright-chrome 22 | image: browserless/chrome 23 | restart: unless-stopped 24 | ``` 25 | -------------------------------------------------------------------------------- /code-server/README.md: -------------------------------------------------------------------------------- 1 | # Code Server 2 | 3 | ## Docker Compose 4 | 5 | ```yml 6 | version: "2.1" 7 | services: 8 | code-server: 9 | image: lscr.io/linuxserver/code-server:latest 10 | container_name: code-server 11 | environment: 12 | - PUID=1000 13 | - PGID=1000 14 | - TZ=Europe/Madrid 15 | - HASHED_PASSWORD=${PASS} 16 | - SUDO_PASSWORD_HASH=${SUDO} 17 | - PROXY_DOMAIN=${URL} 18 | - DEFAULT_WORKSPACE=/config/workspace #optional 19 | volumes: 20 | - ./config:/config 21 | - ./scripts:/custom-cont-init.d:ro 22 | restart: unless-stopped 23 | networks: 24 | - proxy 25 | labels: 26 | - "traefik.enable=true" 27 | - "traefik.http.routers.code-server.entrypoints=https" 28 | - "traefik.http.routers.code-server.rule=Host(`coder.domain.com`)" 29 | - "traefik.http.routers.code-server.tls=true" 30 | - "traefik.http.services.code-server.loadbalancer.server.port=8443" 31 | 32 | networks: 33 | proxy: 34 | external: true 35 | ``` 36 | 37 | ## Script 38 | 39 | ```bash 40 | #!/bin/bash 41 | 42 | sudo apt-get update 43 | 44 | apt install -y openjdk-17-jdk openjdk-17-jre 45 | ``` 46 | -------------------------------------------------------------------------------- /commento/README.md: -------------------------------------------------------------------------------- 1 | # Commentoplusplus 2 | 3 | ```yml 4 | version: '3.7' 5 | 6 | services: 7 | commento: 8 | container_name: commento 9 | image: caroga/commentoplusplus:latest 10 | networks: 11 | - default 12 | - proxy 13 | restart: unless-stopped 14 | environment: 15 | - COMMENTO_ORIGIN=https://commento.domain.com 16 | - COMMENTO_PORT=8080 17 | - COMMENTO_POSTGRES=postgres://postgres:${PASS}@db:5432/commento?sslmode=disable 18 | - COMMENTO_GZIP_STATIC=true 19 | - COMMENTO_FORBID_NEW_OWNERS=true 20 | - COMMENTO_SMTP_HOST=in-v3.mailjet.com 21 | - COMMENTO_SMTP_PORT=587 22 | - COMMENTO_SMTP_USERNAME=${USER} 23 | - COMMENTO_SMTP_PASSWORD=${PASSWORD} 24 | - COMMENTO_SMTP_FROM_ADDRESS=mail@domain.com 25 | depends_on: 26 | - db 27 | labels: 28 | - "traefik.enable=true" 29 | - "traefik.http.routers.commento.entrypoints=https" 30 | - "traefik.http.routers.commento.rule=Host(`commento.domain.com)" 31 | - "traefik.http.routers.commento.tls=true" 32 | - "traefik.http.services.commento.loadbalancer.server.port=8080" 33 | 34 | db: 35 | container_name: commento-db 36 | image: postgres:latest 37 | networks: 38 | - default 39 | restart: unless-stopped 40 | environment: 41 | - POSTGRES_DB=commento 42 | - POSTGRES_USER=postgres 43 | - POSTGRES_PASSWORD=${DB_PASS} 44 | volumes: 45 | - ./data:/var/lib/postgresql/data 46 | 47 | networks: 48 | proxy: 49 | external: true 50 | ``` 51 | 52 | ## Backup 53 | 54 | Run: `docker exec commento-db pg_dump -h localhost -U postgres commento > /home/user/docker/commentoplusplus/backups/commento_$(date '+%Y%m%d').sql` 55 | 56 | On crontab: 57 | ``` 58 | 0 3 * * * docker exec commento-db pg_dump -h localhost -U postgres commento > /home/user/docker/commentoplusplus/backups/commento_$(date '+\%Y-\%m-\%d').sql 59 | ``` -------------------------------------------------------------------------------- /dashy/README.md: -------------------------------------------------------------------------------- 1 | # Dashy 2 | 3 | ```yml 4 | version: "3.8" 5 | services: 6 | dashy: 7 | image: lissy93/dashy 8 | container_name: dashy 9 | volumes: 10 | - ./config.yml:/app/public/conf.yml 11 | ports: 12 | - 4000:80 13 | environment: 14 | - NODE_ENV=production 15 | - UID=1000 16 | - GID=1000 17 | restart: unless-stopped 18 | healthcheck: 19 | test: ['CMD', 'node', '/app/services/healthcheck'] 20 | interval: 1m30s 21 | timeout: 10s 22 | retries: 3 23 | start_period: 40s 24 | ``` -------------------------------------------------------------------------------- /duckdns/README.md: -------------------------------------------------------------------------------- 1 | # Duck DNS 2 | 3 | ```yml 4 | version: "2.1" 5 | services: 6 | duckdns: 7 | image: lscr.io/linuxserver/duckdns:latest 8 | container_name: duckdns 9 | environment: 10 | - PUID=1000 #optional 11 | - PGID=1000 #optional 12 | - TZ=Europe/Madrid 13 | - SUBDOMAINS=${SUBDOMAIN} 14 | - TOKEN=${TOKEN} 15 | - LOG_FILE=true 16 | volumes: 17 | - ./config:/config #optional 18 | restart: unless-stopped 19 | ``` 20 | -------------------------------------------------------------------------------- /duplicati/README.md: -------------------------------------------------------------------------------- 1 | # Duplicati 2 | 3 | ```yml 4 | version: "2.1" 5 | services: 6 | duplicati: 7 | image: lscr.io/linuxserver/duplicati 8 | container_name: duplicati 9 | environment: 10 | - PUID=1000 11 | - PGID=1000 12 | - TZ=Europe/Madrid 13 | volumes: 14 | - /data/duplicati:/config 15 | - /backup:/backups 16 | - /data:/source 17 | ports: 18 | - 8200:8200 19 | restart: unless-stopped 20 | ``` 21 | -------------------------------------------------------------------------------- /epicgames-freegames-node/README.md: -------------------------------------------------------------------------------- 1 | # Epic Games Store Weekly Free Games 2 | 3 | ```yml 4 | version: '3.3' 5 | services: 6 | epicgames-freegames: 7 | container_name: epicgames-freegames 8 | environment: 9 | - TZ=Europe/Madrid 10 | - EMAIL=${EMAIL} 11 | - PASSWORD=${PASSWORD} 12 | - DISCORD_WEBHOOK=${DISCORD_WEBHOOK} 13 | - RUN_ON_STARTUP=true 14 | - BASE_URL=http://192.168.1.122:3001 15 | volumes: 16 | - './data:/usr/app/config:rw' 17 | ports: 18 | - '3001:3000' 19 | image: 'charlocharlie/epicgames-freegames:latest' 20 | restart: unless-stopped 21 | ``` 22 | -------------------------------------------------------------------------------- /fail2ban/README.md: -------------------------------------------------------------------------------- 1 | # Fail2ban 2 | 3 | ```yml 4 | version: "3.5" 5 | 6 | services: 7 | fail2ban: 8 | image: crazymax/fail2ban:latest 9 | container_name: fail2ban 10 | network_mode: "host" 11 | cap_add: 12 | - NET_ADMIN 13 | - NET_RAW 14 | volumes: 15 | - "./data:/data" 16 | - "/data/authelia/log:/var/log/authelia:ro" 17 | - "/data/nextcloud/nextcloud.log:/var/log/nextcloud/nextcloud.log:ro" 18 | - "/data/vaultwarden/vaultwarden.log:/var/log/vaultwarden/vaultwarden.log:ro" 19 | - "/data/navidrome/navidrome.log:/var/log/navidrome/navidrome.log:ro" 20 | - "/var/log/traefik:/var/log/traefik/:ro" 21 | restart: always 22 | ``` -------------------------------------------------------------------------------- /filebrowser/README.md: -------------------------------------------------------------------------------- 1 | # FileBrowser 2 | 3 | ```yml 4 | version: '3.3' 5 | services: 6 | filebrowser: 7 | container_name: filebrowser 8 | volumes: 9 | - '/:/srv' 10 | - './database:/database' 11 | - './config:/config' 12 | environment: 13 | - PUID=1000 14 | - PGID=1000 15 | ports: 16 | - '8300:80' 17 | image: 'filebrowser/filebrowser:s6' 18 | restart: always 19 | ``` -------------------------------------------------------------------------------- /fireflyiii/README.md: -------------------------------------------------------------------------------- 1 | # Firefly III 2 | 3 | ## Docker-compose 4 | 5 | ```yml 6 | version: '3.3' 7 | 8 | services: 9 | app: 10 | container_name: firefly 11 | image: fireflyiii/core:latest 12 | restart: always 13 | volumes: 14 | - /data/firefly/upload:/var/www/html/storage/upload 15 | env_file: .env 16 | ports: 17 | - 8003:8080 18 | depends_on: 19 | - db 20 | db: 21 | container_name: firefly_db 22 | image: mariadb 23 | hostname: fireflyiiidb 24 | restart: always 25 | environment: 26 | - MYSQL_RANDOM_ROOT_PASSWORD=yes 27 | - MYSQL_USER=${DB_USERNAME} 28 | - MYSQL_PASSWORD=${DB_PASSWORD} 29 | - MYSQL_DATABASE=${DB_DATABASE} 30 | volumes: 31 | - /data/firefly/database:/var/lib/mysql 32 | fidi: 33 | container_name: firefly_fidi 34 | restart: always 35 | image: fireflyiii/data-importer:latest 36 | env_file: .fidi.env 37 | ports: 38 | - 8081:8080 39 | depends_on: 40 | - app 41 | ``` 42 | 43 | ## .env 44 | 45 | Download the example env file from: [https://raw.githubusercontent.com/firefly-iii/firefly-iii/main/.env.example](https://raw.githubusercontent.com/firefly-iii/firefly-iii/main/.env.example) and rename it to `.env`. 46 | 47 | Then edit the following variables: 48 | 49 | - SITE_OWNER 50 | - APP_KEY 51 | - DEFAULT_LOCALE 52 | - TZ 53 | - DB_USERNAME 54 | - DB_PASSWORD 55 | 56 | ## .fidi.env 57 | 58 | Download the example env file from: [https://raw.githubusercontent.com/firefly-iii/data-importer/main/.env.example](https://raw.githubusercontent.com/firefly-iii/data-importer/main/.env.example) and rename it to `.fidi.env`. 59 | 60 | Then edit the following variables: 61 | 62 | - FIREFLY_III_URL 63 | - FIREFLY_III_ACCESS_TOKEN 64 | 65 | You can generate your own Personal Access Token on the Profile page. Login to your Firefly III instance, go to "Options" > "Profile" > "OAuth" and find "Personal Access Tokens". Create a new Personal Access Token by clicking on "Create New Token". Give it a recognizable name and press "Create". The Personal Access Token is pretty long. 66 | 67 | ## Backup 68 | 69 | Cronjob: 70 | 71 | ``` 72 | 0 14 * * * docker exec firefly_db mysqldump --single-transaction -h localhost -u firefly -pET6Ysh5TXt3t9QStjypeBYFNWuLJAw9U firefly > /data/firefly/db_bak/firefly-sqlbkp_$(date '+\%Y-\%m-\%d').sql 73 | ``` 74 | -------------------------------------------------------------------------------- /freshrss/README.md: -------------------------------------------------------------------------------- 1 | # FreshRSS 2 | 3 | ```yml 4 | version: "2.1" 5 | services: 6 | freshrss: 7 | image: lscr.io/linuxserver/freshrss 8 | container_name: freshrss 9 | environment: 10 | - PUID=1000 11 | - PGID=1000 12 | - TZ=Europe/Madrid 13 | volumes: 14 | - /data/freshrss:/config 15 | restart: unless-stopped 16 | networks: 17 | - proxy 18 | labels: 19 | - "traefik.enable=true" 20 | - "traefik.http.routers.freshrss.entrypoints=https" 21 | - "traefik.http.routers.freshrss.rule=Host(`freshrss.domain.com`)" 22 | - "traefik.http.routers.freshrss.tls=true" 23 | - "traefik.http.services.freshrss.loadbalancer.server.port=80" 24 | 25 | networks: 26 | proxy: 27 | external: true 28 | ``` -------------------------------------------------------------------------------- /home-assistant/README.md: -------------------------------------------------------------------------------- 1 | # Home Assistant 2 | 3 | ## Docker Compose 4 | ```yml 5 | version: "2.1" 6 | services: 7 | homeassistant: 8 | image: lscr.io/linuxserver/homeassistant 9 | container_name: homeassistant 10 | network_mode: host 11 | environment: 12 | - PUID=1000 13 | - PGID=1000 14 | - TZ=Europe/Madrid 15 | volumes: 16 | - /data/homeassistant:/config 17 | restart: unless-stopped 18 | ``` 19 | 20 | # HACS 21 | 22 | Use: `wget -O - https://get.hacs.xyz | bash -` -------------------------------------------------------------------------------- /invidious/README.md: -------------------------------------------------------------------------------- 1 | # Invidious 2 | 3 | ## Docker Compose 4 | ```yml 5 | version: "3" 6 | services: 7 | 8 | invidious: 9 | image: quay.io/invidious/invidious:latest 10 | restart: unless-stopped 11 | networks: 12 | - default 13 | - proxy 14 | environment: 15 | INVIDIOUS_CONFIG: | 16 | db: 17 | dbname: invidious 18 | user: kemal 19 | password: ${PASS} 20 | host: invidious-db 21 | port: 5432 22 | check_tables: true 23 | https_only: true 24 | domain: ${URL} 25 | external_port: 443 26 | registration_enabled: false 27 | admins: 28 | - invidious 29 | healthcheck: 30 | test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1 31 | interval: 30s 32 | timeout: 5s 33 | retries: 2 34 | depends_on: 35 | - invidious-db 36 | labels: 37 | - "traefik.enable=true" 38 | - "traefik.http.routers.invidious.entrypoints=https" 39 | - "traefik.http.routers.invidious.rule=Host(`invidious.domain.com`)" 40 | - "traefik.http.routers.invidious.tls=true" 41 | - "traefik.http.services.invidious.loadbalancer.server.port=3000" 42 | - "traefik.http.routers.invidious-secure.middlewares=authelia@docker" 43 | 44 | invidious-db: 45 | image: docker.io/library/postgres:14 46 | restart: unless-stopped 47 | networks: 48 | - default 49 | volumes: 50 | - postgresdata:/var/lib/postgresql/data 51 | - ./config/sql:/config/sql 52 | - ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh 53 | environment: 54 | POSTGRES_DB: invidious 55 | POSTGRES_USER: kemal 56 | POSTGRES_PASSWORD: ${PASS} 57 | healthcheck: 58 | test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] 59 | 60 | volumes: 61 | postgresdata: 62 | 63 | networks: 64 | proxy: 65 | external: true 66 | ``` 67 | 68 | ## Maintenance 69 | ``` 70 | docker exec invidious_postgres_1 psql -U kemal invidious -c "DELETE FROM nonces * WHERE expire < current_timestamp" 71 | ``` 72 | ``` 73 | docker exec invidious_postgres_1 psql -U kemal invidious -c "TRUNCATE TABLE videos" 74 | ``` 75 | 76 | For regular maintenance you should add a cronjob for these commands: 77 | ``` 78 | @weekly docker exec invidious_postgres_1 psql -U kemal invidious -c "DELETE FROM nonces * WHERE expire < current_timestamp" > /dev/null 79 | 80 | @weekly docker exec invidious_postgres_1 psql -U kemal invidious -c "DELETE FROM nonces * WHERE expire < current_timestamp" > /dev/null 81 | ``` 82 | -------------------------------------------------------------------------------- /kopia/README.md: -------------------------------------------------------------------------------- 1 | # Kopia 2 | 3 | ```yml 4 | version: '3.7' 5 | services: 6 | kopia: 7 | image: kopia/kopia:latest 8 | hostname: metal 9 | container_name: kopia 10 | restart: unless-stopped 11 | ports: 12 | - 51515:51515 13 | environment: 14 | - KOPIA_PASSWORD=${KOPIA_REPOSITORY_PASSWORD} 15 | - KOPIA_PERSIST_CREDENTIALS_ON_CONNECT=true 16 | - TZ=Europe/Madrid 17 | volumes: 18 | - ./config:/app/config 19 | - ./cache:/app/cache 20 | - ./logs:/app/logs 21 | - /data:/app/data:ro 22 | - /backup:/app/backup 23 | - ./export:/export 24 | command: 25 | - server 26 | - start 27 | - --insecure 28 | - --address=0.0.0.0:51515 29 | - --server-username=kopia@metal 30 | - --server-password=${KOPIA_USER_PASSWORD} 31 | ``` 32 | 33 | ## Create a repository 34 | 35 | When you first start Kopia, you need to create a repository and it will ask for a password. You will need to use the $KOPIA_REPOSITORY_PASSWORD environment variable for this. 36 | -------------------------------------------------------------------------------- /libreddit/README.md: -------------------------------------------------------------------------------- 1 | # Libreddit 2 | 3 | ## Docker compose 4 | ```yml 5 | version: '3' 6 | 7 | services: 8 | libreddit: 9 | container_name: "libreddit" 10 | image: spikecodes/libreddit 11 | user: "1000:1000" 12 | restart: unless-stopped 13 | networks: 14 | - proxy 15 | labels: 16 | - "traefik.enable=true" 17 | - "traefik.http.routers.libreddit.entrypoints=https" 18 | - "traefik.http.routers.libreddit.rule=Host(`libreddit.domain.com`)" 19 | - "traefik.http.routers.libreddit.tls=true" 20 | - "traefik.http.services.libreddit.loadbalancer.server.port=8080" 21 | - "traefik.http.routers.invidious.middlewares=authelia@docker" 22 | 23 | networks: 24 | proxy: 25 | external: true 26 | ``` -------------------------------------------------------------------------------- /librespeed/README.md: -------------------------------------------------------------------------------- 1 | # LibreSpeed 2 | 3 | ## Docker compose 4 | ```yml 5 | version: "2.1" 6 | services: 7 | librespeed: 8 | image: linuxserver/librespeed 9 | container_name: librespeed 10 | environment: 11 | - PUID=1000 12 | - PGID=1000 13 | - TZ=Europe/London 14 | volumes: 15 | - ./config:/config 16 | ports: 17 | - 30001:80 18 | restart: unless-stopped 19 | ``` -------------------------------------------------------------------------------- /media-server/README.md: -------------------------------------------------------------------------------- 1 | # Media Server 2 | 3 | ## Docker compose of Jellyfin, Sonarr, Radarr, Jellyseer and Bazarr 4 | 5 | ```yml 6 | version: "3" 7 | services: 8 | jellyfin: 9 | image: linuxserver/jellyfin 10 | container_name: jellyfin 11 | environment: 12 | - PUID=1000 13 | - PGID=1000 14 | - TZ=Europe/Madrid 15 | volumes: 16 | - ./jellyfin:/config 17 | - /data/media/tvshows:/data/tvshows 18 | - /data/media/movies:/data/movies 19 | - /data/media/anime:/data/anime 20 | devices: 21 | - "/dev/dri:/dev/dri" 22 | ports: 23 | - 8096:8096 24 | restart: unless-stopped 25 | 26 | sonarr: 27 | image: linuxserver/sonarr 28 | container_name: sonarr 29 | environment: 30 | - PUID=1000 31 | - PGID=1000 32 | - TZ=Europe/Madrid 33 | volumes: 34 | - ./sonarr:/config 35 | - /data/media/anime:/anime 36 | - /data/media/tvshows:/tvshows 37 | - /data/transmission/downloads/complete:/downloads/complete 38 | ports: 39 | - 8989:8989 40 | restart: unless-stopped 41 | 42 | radarr: 43 | image: linuxserver/radarr 44 | container_name: radarr 45 | environment: 46 | - PUID=1000 47 | - PGID=1000 48 | - TZ=Europe/Madrid 49 | volumes: 50 | - ./radarr:/config 51 | - /data/transmission/downloads/complete:/downloads/complete 52 | - /data/media/movies:/movies 53 | ports: 54 | - 7878:7878 55 | restart: unless-stopped 56 | 57 | jellyseerr: 58 | image: fallenbagel/jellyseerr:latest 59 | container_name: jellyseerr 60 | user: 1000:1000 61 | environment: 62 | - TZ=Europe/Madrid 63 | ports: 64 | - 5055:5055 65 | volumes: 66 | - ./jellyseer_config:/app/config 67 | restart: unless-stopped 68 | depends_on: 69 | - radarr 70 | - sonarr 71 | 72 | bazarr: 73 | image: linuxserver/bazarr 74 | container_name: bazarr 75 | environment: 76 | - PUID=1000 77 | - PGID=1000 78 | - TZ=Europe/Madrid 79 | volumes: 80 | - ./bazarr:/config 81 | - /data/media/movies:/movies #optional 82 | - /data/media/tvshows:/tvshows #optional 83 | - /data/media/anime:/anime 84 | ports: 85 | - 6767:6767 86 | restart: unless-stopped 87 | ``` 88 | 89 | ## Docker compose of Prowlarr and Transmission 90 | 91 | ```yml 92 | version: "3" 93 | services: 94 | gluetun: 95 | image: qmcgaw/gluetun 96 | cap_add: 97 | - NET_ADMIN 98 | environment: 99 | - VPN_SERVICE_PROVIDER=windscribe 100 | - VPN_TYPE=wireguard 101 | - WIREGUARD_PRIVATE_KEY=${PRIVATE_KEY} 102 | - WIREGUARD_ADDRESSES=${ADDRESSES} 103 | - WIREGUARD_PRESHARED_KEY=${PRESHARED_KEY} 104 | - SERVER_REGIONS=Spain 105 | - SERVER_CITIES=Madrid 106 | - FIREWALL_OUTBOUND_SUBNETS=192.168.1.0/24 107 | ports: 108 | - 9696:9696 # prowlarr 109 | - 9091:9091 # transmission 110 | - 51413:51413 # transmission 111 | - 51413:51413/udp # transmission 112 | restart: unless-stopped 113 | 114 | prowlarr: 115 | image: lscr.io/linuxserver/prowlarr:latest 116 | network_mode: "service:gluetun" 117 | container_name: prowlarr 118 | environment: 119 | - PUID=1000 120 | - PGID=1000 121 | - TZ=Europe/Madrid 122 | volumes: 123 | - ./prowlarr:/config 124 | restart: unless-stopped 125 | 126 | transmission: 127 | image: lscr.io/linuxserver/transmission:latest 128 | network_mode: "service:gluetun" 129 | container_name: transmission 130 | environment: 131 | - PUID=1000 132 | - PGID=1000 133 | - TZ=Europe/Madrid 134 | volumes: 135 | - ./transmission/config:/config 136 | - /data/transmission/downloads:/downloads 137 | - ./transmission/watch:/watch 138 | restart: unless-stopped 139 | ``` 140 | -------------------------------------------------------------------------------- /minecraft-server/README.md: -------------------------------------------------------------------------------- 1 | # Minecraft Server 2 | 3 | ## Minecraft server docker image 4 | 5 | ```yml 6 | version: "3" 7 | 8 | services: 9 | mc: 10 | image: itzg/minecraft-server 11 | container_name: minecraft-server 12 | ports: 13 | - 25565:25565 14 | environment: 15 | EULA: "TRUE" 16 | TYPE: "FORGE" 17 | DIFFICULTY: "normal" 18 | VERSION: "1.19.2" 19 | FORGE_VERSION: "43.2.0" 20 | MEMORY: "8G" 21 | tty: true 22 | stdin_open: true 23 | restart: unless-stopped 24 | volumes: 25 | - ./data:/data 26 | - ./mods:/mods 27 | - /etc/timezone:/etc/timezone 28 | ``` 29 | 30 | ## Lightweight proxy for Minecraft Java server 31 | 32 | ```yml 33 | version: '3.4' 34 | 35 | services: 36 | router: 37 | image: ${MC_ROUTER_IMAGE:-itzg/mc-router} 38 | environment: 39 | # enable API 40 | API_BINDING: ":25564" 41 | ports: 42 | - 25565:25565 43 | # bind the API port to only loopback to avoid external exposure 44 | - 127.0.0.1:25564:25564 45 | command: --mapping=minecraft.example.com=192.168.x.x:25565 46 | ``` 47 | -------------------------------------------------------------------------------- /monitor-stack/README.md: -------------------------------------------------------------------------------- 1 | # Monitoring Stack 2 | 3 | ```bash 4 | mkdir -p monitoring/{grafana,loki,promtail,prometheus} 5 | vim ~/docker/monitor/docker-compose.yml 6 | ``` 7 | 8 | ## ./grafana/docker-compose.yml 9 | 10 | ```yml 11 | version: "3" 12 | services: 13 | grafana: 14 | image: grafana/grafana:latest 15 | user: "1000" 16 | volumes: 17 | - ./grafana:/var/lib/grafana 18 | ports: 19 | - "3000:3000" 20 | restart: unless-stopped 21 | networks: 22 | - default 23 | 24 | loki: 25 | image: grafana/loki:2.4.0 26 | volumes: 27 | - ./loki:/etc/loki 28 | ports: 29 | - "3100:3100" 30 | restart: unless-stopped 31 | command: -config.file=/etc/loki/loki-config.yml 32 | networks: 33 | - default 34 | 35 | promtail: 36 | image: grafana/promtail:2.4.0 37 | volumes: 38 | - /var/log:/var/log 39 | - ./promtail:/etc/promtail 40 | # ports: 41 | # - "1514:1514" # this is only needed if you are going to send syslogs 42 | restart: unless-stopped 43 | command: -config.file=/etc/promtail/promtail-config.yml 44 | networks: 45 | - default 46 | 47 | prometheus: 48 | container_name: prometheus 49 | ports: 50 | - '9080:9090' 51 | volumes: 52 | - './prometheus:/etc/prometheus' 53 | image: prom/prometheus 54 | restart: unless-stopped 55 | networks: 56 | - default 57 | ``` 58 | 59 | ## ./loki/loki-config.yml 60 | 61 | ```yml 62 | auth_enabled: false 63 | 64 | server: 65 | http_listen_port: 3100 66 | grpc_listen_port: 9096 67 | 68 | common: 69 | path_prefix: /tmp/loki 70 | storage: 71 | filesystem: 72 | chunks_directory: /tmp/loki/chunks 73 | rules_directory: /tmp/loki/rules 74 | replication_factor: 1 75 | ring: 76 | instance_addr: 127.0.0.1 77 | kvstore: 78 | store: inmemory 79 | 80 | schema_config: 81 | configs: 82 | - from: 2020-10-24 83 | store: boltdb-shipper 84 | object_store: filesystem 85 | schema: v11 86 | index: 87 | prefix: index_ 88 | period: 24h 89 | 90 | ruler: 91 | alertmanager_url: http://localhost:9093 92 | ``` 93 | 94 | ## Loki Docker Driver 95 | 96 | Install loki plugin: `docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions` 97 | 98 | Check it is installed with `docker plugin ls` 99 | 100 | `sudo vim /etc/docker/daemon.json` 101 | ```bash 102 | { 103 | "log-driver": "loki", 104 | "log-opts": { 105 | "loki-url": "http://localhost:3100/loki/api/v1/push", 106 | "loki-batch-size": "400" 107 | } 108 | } 109 | ``` 110 | 111 | Restart docker daemon: ```sudo systemctl restart docker```, you will also need to recreate the services you want logs or wait for next reboot. 112 | 113 | ## Promtail 114 | 115 | CHANGE PROMTAIL CONFIG TO: 116 | 117 | `vim ./promtail/promtail-config.yml` 118 | ```yml 119 | server: 120 | http_listen_port: 9080 121 | grpc_listen_port: 0 122 | 123 | positions: 124 | filename: /tmp/positions.yaml 125 | 126 | clients: 127 | - url: http://loki:3100/loki/api/v1/push 128 | 129 | scrape_configs: 130 | 131 | # local machine logs 132 | - job_name: local 133 | static_configs: 134 | - targets: 135 | - localhost 136 | labels: 137 | job: varlogs 138 | __path__: /var/log/*log 139 | 140 | ## docker logs 141 | 142 | - job_name: docker 143 | pipeline_stages: 144 | - docker: {} 145 | static_configs: 146 | - labels: 147 | job: docker 148 | __path__: /var/lib/docker/containers/*/*-json.log 149 | 150 | # syslog target 151 | 152 | #- job_name: syslog 153 | # syslog: 154 | # listen_address: 0.0.0.0:1514 # make sure you also expose this port on the container 155 | # idle_timeout: 60s 156 | # label_structured_data: yes 157 | # labels: 158 | # job: "syslog" 159 | # relabel_configs: 160 | # - source_labels: ['__syslog_message_hostname'] 161 | # target_label: 'host' 162 | ``` 163 | 164 | Restart docker daemon: `sudo systemctl restart docker`. 165 | 166 | You will also need to recreate the containers. 167 | 168 | ## LogQL sample queries 169 | 170 | Query all logs from the `varlogs` stream 171 | ``` 172 | {job="varlogs"} 173 | ``` 174 | Query all logs from the `varlogs` stream and filter on `docker` 175 | ``` 176 | {job="varlogs"} |= "docker" 177 | ``` 178 | Query all logs from the `container_name` label of `uptime-kuma` and filter on `host` of `juno` 179 | ``` 180 | {container_name="uptime-kuma", host="juno"} 181 | ``` 182 | 183 | ## Netdata 184 | 185 | ### Docker Compose 186 | 187 | `bash <(curl -Ss https://my-netdata.io/kickstart.sh)` 188 | 189 | Check [http://192.168.1.126:19999](http://192.168.1.126:19999) 190 | 191 | `sudo apt install lm-sensors` 192 | 193 | Restart netdata with: 194 | 1. `sudo systemctl stop netdata` 195 | 2. `sudo systemctl start netdata` 196 | 197 | ### Delete netdata 198 | 199 | Script located at: `/usr/libexec/netdata/netdata-uninstaleler.sh` 200 | 201 | ## Prometheus 202 | 203 | `vim ./prometheus/prometheus.yml` 204 | ```yml 205 | # my global config 206 | global: 207 | scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. 208 | evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. 209 | # scrape_timeout is set to the global default (10s). 210 | 211 | # Alertmanager configuration 212 | alerting: 213 | alertmanagers: 214 | - static_configs: 215 | - targets: 216 | # - alertmanager:9093 217 | 218 | # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. 219 | rule_files: 220 | # - "first_rules.yml" 221 | # - "second_rules.yml" 222 | 223 | # A scrape configuration containing exactly one endpoint to scrape: 224 | # Here it's Prometheus itself. 225 | scrape_configs: 226 | # The job name is added as a label `job=` to any timeseries scraped from this config. 227 | - job_name: 'prometheus' 228 | 229 | # metrics_path defaults to '/metrics' 230 | # scheme defaults to 'http'. 231 | 232 | static_configs: 233 | - targets: ['localhost:9090'] 234 | 235 | ############################################################################# 236 | 237 | - job_name: 'netdata-scrape' # change_me 238 | 239 | metrics_path: '/api/v1/allmetrics' 240 | params: 241 | # format: prometheus | prometheus_all_hosts 242 | # You can use `prometheus_all_hosts` if you want Prometheus to set the `instance` to your hostname instead of IP 243 | format: [prometheus] 244 | # 245 | # source: as-collected | raw | average | sum | volume 246 | # default is: average 247 | #source: [as-collected] 248 | # 249 | # server name for this prometheus - the default is the client IP 250 | # for Netdata to uniquely identify it 251 | #server: ['prometheus1'] 252 | honor_labels: true 253 | static_configs: 254 | - targets: ['192.168.1.126:19999'] # change_me 255 | 256 | ############################################################################# 257 | ``` 258 | 259 | If you decide to monitor more than one Netdata instance just copy and paste from each pound line then edit the job name and target IP. 260 | 261 | Once saved the config, restart the prometheus service. 262 | 263 | ## Start containers 264 | 265 | `docker-compose up -d --force-recreate # be sure you've created promtail-config.yml and loki-config.yml before running this` 266 | 267 | ## Grafana config 268 | Now: 269 | 1. Wait until [http://192.168.1.122:3100/ready](http://192.168.1.122:3100/ready) shows ready, 270 | 2. Go to [http://192.168.1.122:3000](http://192.168.1.122:3000) and use user:admin password:admin 271 | 3. Go to configuration > data sources> on left panel. 272 | 4. Click 'Add data source' 273 | 5. Scroll down and search/select Loki 274 | 6. Change Http url to: [http://loki:3100](http://loki:3100) 275 | 7. Scroll down and click 'Save & test' 276 | 8. Go to explore in left panel, and make sure that data source is set to Loki 277 | 9. To add queries: 278 | - In 'Log browser' write: {} 279 | - Select 'job' 280 | - Select 'varlogs' 281 | - Type ctrl + enter, and search for logs 282 | 10. Add Prometheus as data source and put your HTTP URL, e.g, http://192.168.1.126:9080 283 | 284 | ### System uptime 285 | Search `netdata_system_uptime_seconds_average` in Prometheus. 286 | Get the query, e.g: 287 | ``` 288 | netdata_system_uptime_seconds_average{chart="system.uptime", dimension="uptime", family="uptime", instance="192.168.1.126:19999", job="storage-netdata"} 289 | ``` 290 | 291 | Go to Grafana, add panel with "Metrics browser": query copied before. (Make that the data source selected is Prometheus) 292 | 293 | - Scroll down until Standard options>Unit>Time>Seconds. 294 | - On the top navbar, change from 'Time series' to 'Stat'. 295 | - Stat styles>Horizontal. 296 | - Change 'Threshold' to `43200` for 12H. 297 | - Change 'Title' to 'Uptime'. 298 | 299 | ### CPU Temperature (requires sensors to be installed on the server using lm-sensors) 300 | Search `netdata_sensors_temperature_Celsius_average` 301 | Select the one with Package id 0, e.g: 302 | ``` 303 | netdata_sensors_temperature_Celsius_average{chart="sensors.coretemp_isa_0000_temperature", dimension="Package id 0", family="temperature", instance="192.168.1.126:19999", job="storage-netdata"} 304 | ``` 305 | - Change Title: CPU Package Temp 306 | - 'Time series' to 'Stat' 307 | - Standard options>Unit>Temperature>Celcius 308 | - Change 'Threshold' 309 | - Change 'Base' color 310 | 311 | ### CPU USAGE 312 | Search `netdata_cpu_cpu_percentage_average` 313 | Select the one with user: 314 | ``` 315 | netdata_cpu_cpu_percentage_average{chart="cpu.cpu0", dimension="user", family="utilization", instance="192.168.1.126:19999", job="storage-netdata"} 316 | ``` 317 | - Standard Options>Unit>Misc>Percentage 318 | - Standard Options>Max>100 319 | 320 | Create another one but instead of Stat, use Time Series and name it CPU Usage Flow 321 | - Legend (Under Metrics browser), write: CPU Chart 322 | - Toggle 'Transparent Background' 323 | - Remove Unit and Max 324 | - Standard Options > Color scheme> Blue-Yellow-Red 325 | - Thresholds> Base> BLue 326 | - Thresholds > Show thresholds > As filled regions and lines 327 | 328 | ### Memory Used 329 | 330 | Search `netdata_system_ram_MiB_average` 331 | Select used, e.g: 332 | ``` 333 | netdata_system_ram_MiB_average{chart="system.ram", dimension="used", family="ram", instance="192.168.1.126:19999", job="storage-netdata"} 334 | ``` 335 | - Standard Options> Unit> Data> Megabytes 336 | 337 | Also add another panel with: 338 | ``` 339 | netdata_system_ram_MiB_average{chart="system.ram", dimension="free", family="ram", instance="192.168.1.126:19999", job="storage-netdata"} 340 | ``` 341 | 342 | ### Hard drive space 343 | 344 | Search `netdata_disk_space_GiB_average` 345 | We will add: 346 | ``` 347 | netdata_disk_space_GiB_average{chart="disk_space._", dimension="avail", family="/", instance="192.168.1.126:19999", job="storage-netdata"} 348 | ``` 349 | and (/data) 350 | ``` 351 | netdata_disk_space_GiB_average{chart="disk_space._data", dimension="avail", family="/data", instance="192.168.1.126:19999", job="storage-netdata"} 352 | ``` 353 | and (/backup) 354 | ``` 355 | netdata_disk_space_GiB_average{chart="disk_space._backup", dimension="avail", family="/backup", instance="192.168.1.126:19999", job="storage-netdata"} 356 | ``` 357 | 358 | All: 359 | - Time Series to Stat: 360 | - Unit to Gigabytes 361 | - Set Thresholds 362 | -------------------------------------------------------------------------------- /navidrome/README.md: -------------------------------------------------------------------------------- 1 | # Navidrome 2 | 3 | Remember to create the folder /data/navidrome first with user 1000. 4 | 5 | ## Docker Compose 6 | 7 | ```yml 8 | version: "3" 9 | services: 10 | navidrome: 11 | container_name: navidrome 12 | user: 1000:1000 13 | image: deluan/navidrome:latest 14 | restart: unless-stopped 15 | networks: 16 | - proxy 17 | volumes: 18 | - "/data/navidrome:/data" 19 | - "/data/nextcloud/admin/files/music:/music:ro" 20 | labels: 21 | - "traefik.enable=true" 22 | - "traefik.http.routers.navidrome.entrypoints=https" 23 | - "traefik.http.routers.navidrome.rule=Host(`navidrome.domain.com`)" 24 | - "traefik.http.routers.navidrome.tls=true" 25 | entrypoint: /bin/sh -c "/app/navidrome &> /data/navidrome.log" 26 | 27 | networks: 28 | proxy: 29 | external: true 30 | ``` 31 | -------------------------------------------------------------------------------- /nextcloud/README.md: -------------------------------------------------------------------------------- 1 | # Nextcloud 2 | 3 | ## docker-compose.yml 4 | 5 | ```yml 6 | version: "3.7" 7 | 8 | services: 9 | nextcloud: 10 | image: linuxserver/nextcloud:latest 11 | container_name: nextcloud 12 | environment: 13 | - PUID=1000 14 | - PGID=1000 15 | - TZ=${TIMEZONE} 16 | volumes: 17 | - /data/nextcloud/config:/config 18 | - /data/nextcloud:/data 19 | restart: unless-stopped 20 | depends_on: 21 | - db 22 | - redis 23 | networks: 24 | - proxy 25 | - default 26 | labels: 27 | - "traefik.enable=true" 28 | - "traefik.http.routers.nextcloud.entrypoints=https" 29 | - "traefik.http.routers.nextcloud.rule=Host(`nextcloud.domain.com`)" 30 | - "traefik.http.routers.nextcloud.tls=true" 31 | - "traefik.http.services.nextcloud.loadbalancer.server.port=443" 32 | - "traefik.http.services.nextcloud.loadbalancer.server.scheme=https" 33 | - "traefik.http.middlewares.nc-header.headers.stsSeconds=31536000" 34 | - "traefik.http.routers.nextcloud.middlewares=nc-header" 35 | 36 | db: 37 | image: linuxserver/mariadb:latest 38 | container_name: nextcloud_db 39 | environment: 40 | - PUID=1000 41 | - PGID=1000 42 | - MYSQL_ROOT_PASSWORD=${DB_ROOT_PW} 43 | - TZ=${TIMEZONE} 44 | - MYSQL_DATABASE=${DB_NAME} 45 | - MYSQL_USER=${DB_USER} 46 | - MYSQL_PASSWORD=${DB_PW} 47 | volumes: 48 | - /data/nextcloud/config_db:/config 49 | restart: unless-stopped 50 | networks: 51 | - default 52 | 53 | redis: 54 | container_name: nextcloud-redis 55 | networks: 56 | - default 57 | image: 'redis:latest' 58 | restart: always 59 | volumes: 60 | - nc-redis:/data 61 | 62 | volumes: 63 | nc-redis: 64 | 65 | networks: 66 | proxy: 67 | external: true 68 | ``` 69 | 70 | ## Set up 71 | 72 | Go to your Nextcloud's URL, select MySQL and use `db` as URL for database. Password is `${DB_PW}` 73 | 74 | ### Set datadirectory 75 | 76 | Add to `config/config.php`, usually `/data/nextcloud/config/www/nextcloud/config/config.php`. 77 | 78 | ```php 79 | 'datadirectory' => '/data', 80 | ``` 81 | 82 | ### Add a new trusted domain 83 | 84 | Go to `config/config.php`, usually `/data/nextcloud/config/www/nextcloud/config/config.php`. 85 | 86 | Initial config: 87 | 88 | ```php 89 | 'trusted_domains' => 90 | array ( 91 | 0 => '192.168.1.126:9443', 92 | ), 93 | ``` 94 | 95 | To add a new domain just add new entries by appending a new item to the PHP array: 96 | 97 | ```php 98 | 'trusted_domains' => 99 | array ( 100 | 0 => '192.168.1.126:9443', 101 | 1 => 'nextcloud.domain.com', 102 | ), 103 | ``` 104 | 105 | ### To add redis: 106 | 107 | ```php 108 | 'memcache.local' => '\\OC\\Memcache\\APCu', 109 | 'memcache.locking' => '\\OC\\Memcache\\Redis', 110 | 'memcache.distributed' => '\\OC\Memcache\\Redis', 111 | 'redis' => 112 | array ( 113 | 'host' => 'redis', 114 | 'port' => 0, 115 | 'timeout' => 0.0, 116 | ), 117 | ``` 118 | 119 | `docker exec nextcloud-redis redis-cli monitor` should display something if redis is working. 120 | 121 | ### Remove password reset 122 | 123 | Add to :`vim www/nextcloud/config/config.php` 124 | 125 | ```php 126 | 'lost_password_link' => 'disabled', 127 | 'auth.webauthn.enabled' => false, 128 | ``` 129 | 130 | ### Fix X_Forwarded_For 131 | 132 | Go to `config/config.php`, usually `/data/nextcloud/config/www/nextcloud/config/config.php`. 133 | Change `192.168.16.0/24`, with traefik's docker network, use: `docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' traefik`. 134 | 135 | ```php 136 | 'trusted_domains' => 137 | array ( 138 | 0 => 'nextcloud.domain.com', 139 | ), 140 | 'trusted_proxies' => 141 | array ( 142 | 0 => '192.168.16.0/24', 143 | ), 144 | 'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'), 145 | ``` 146 | 147 | ### Filesystemcheck 148 | 149 | For Nextcloud to check changes on file system: 150 | 151 | ```php 152 | 'filesystem_check_changes' => 1, 153 | ``` 154 | 155 | ### Memories app 156 | 157 | [Support for high resolution images](https://github.com/pulsejet/memories/wiki/Configuration#imagevideo-support) 158 | 159 | ```php 160 | 'preview_max_memory' => 4096, 161 | 'preview_max_filesize_image' => 256, 162 | ``` 163 | 164 | ### Fix region error 165 | 166 | Add to :`www/nextcloud/config/config.php` 167 | 168 | ```php 169 | 'default_phone_region' => 'ES', 170 | ``` 171 | 172 | ### Enable OPCache 173 | 174 | Add to: `config/php/php-local.ini` 175 | 176 | ```php 177 | opcache.enable=1 178 | opcache.interned_strings_buffer=10 179 | opcache.max_accelerated_files=10000 180 | opcache.memory_consumption=128 181 | opcache.save_comments=1 182 | opcache.revalidate_freq=1 183 | ``` 184 | 185 | ### Remove mail server warning 186 | 187 | Two methods: 188 | 189 | #### CLI 190 | 191 | Add to: `config/php/php-local.ini` 192 | 193 | ```php 194 | 'mail_smtpmode' => 'sendmail', 195 | 'mail_sendmailmode' => 'pipe', 196 | ``` 197 | 198 | #### GUI 199 | 200 | Set default mail on `Personal info > Administration > Basic settings` and change “Send Mode” to “Sendmail”, “Sendmail mode” to “pipe (-t)”, leave “From address” emty and hit “Send email”. 201 | 202 | ### Remove Server has no maintenance window start time warning 203 | 204 | Add to: `config/php/php-local.ini` 205 | ```php 206 | 'maintenance_window_start' => 1, 207 | ``` 208 | 209 | A value of 1 e.g. will only run these background jobs between 01:00am UTC and 05:00am UTC. 210 | 211 | ### Change log level 212 | 213 | You can change your log level with: 214 | ```php 215 | 'loglevel' => 3, 216 | ``` 217 | 218 | 0: DEBUG: All activity; the most detailed logging. 219 | 220 | 1: INFO: Activity such as user logins and file activities, plus warnings, errors, and fatal errors. 221 | 222 | 2: WARN: Operations succeed, but with warnings of potential problems, plus errors and fatal errors. 223 | 224 | 3: ERROR: An operation fails, but other services and operations continue, plus fatal errors. 225 | 226 | 4: FATAL: The server stops. 227 | 228 | ### Auto clean trash bin 229 | 230 | You can edit your trash bin clean up interval: 231 | 232 | ```php 233 | 'trashbin_retention_obligation' => '30, 90', 234 | ``` 235 | 236 | This will keep files and folders in the trash bin for at least 30 days and delete when exceeds 90 days. 237 | 238 | ## Backup 239 | 240 | First create folder /data/nextcloud/db_bak, then `crontab -e` 241 | 242 | ``` 243 | 0 14 * * * docker exec nextcloud occ maintenance:mode --on && docker exec nextcloud_db mysqldump --single-transaction -h localhost -u ${DB_USER} -p${DB_PW} nextcloud > /data/nextcloud/db_bak/nextcloud-`date +"\%Y-\%m-\%d"`.sql && docker exec nextcloud occ maintenance:mode --off 244 | ``` 245 | -------------------------------------------------------------------------------- /paperless-ngx/README.md: -------------------------------------------------------------------------------- 1 | # Paperless-ngx 2 | 3 | ## Docker-compose 4 | 5 | ```yml 6 | version: "3.4" 7 | services: 8 | broker: 9 | container_name: paperless_broker 10 | image: docker.io/library/redis:7 11 | restart: unless-stopped 12 | volumes: 13 | - /data/paperless/redis:/data 14 | 15 | db: 16 | container_name: paperless_db 17 | image: docker.io/library/postgres:13 18 | restart: unless-stopped 19 | volumes: 20 | - /data/paperless/db:/var/lib/postgresql/data 21 | environment: 22 | POSTGRES_DB: paperless 23 | POSTGRES_USER: paperless 24 | POSTGRES_PASSWORD: ${PW} 25 | 26 | webserver: 27 | container_name: paperless_webserver 28 | image: ghcr.io/paperless-ngx/paperless-ngx:latest 29 | restart: unless-stopped 30 | depends_on: 31 | - db 32 | - broker 33 | - gotenberg 34 | - tika 35 | ports: 36 | - "8010:8000" 37 | healthcheck: 38 | test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000"] 39 | interval: 30s 40 | timeout: 10s 41 | retries: 5 42 | volumes: 43 | - /data/paperless/data:/usr/src/paperless/data 44 | - /data/nextcloud/admin/files/documents:/usr/src/paperless/media 45 | - /data/paperless/export:/usr/src/paperless/export 46 | - /data/paperless/consume:/usr/src/paperless/consume 47 | env_file: docker-compose.env 48 | environment: 49 | PAPERLESS_REDIS: redis://broker:6379 50 | PAPERLESS_DBHOST: db 51 | PAPERLESS_DBPASS: ${PW} 52 | PAPERLESS_TIKA_ENABLED: 1 53 | PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000 54 | PAPERLESS_TIKA_ENDPOINT: http://tika:9998 55 | 56 | gotenberg: 57 | container_name: paperless_gotenberg 58 | image: docker.io/gotenberg/gotenberg:7.8 59 | restart: unless-stopped 60 | 61 | # The gotenberg chromium route is used to convert .eml files. We do not 62 | # want to allow external content like tracking pixels or even javascript. 63 | command: 64 | - "gotenberg" 65 | - "--chromium-disable-javascript=true" 66 | - "--chromium-allow-list=file:///tmp/.*" 67 | 68 | tika: 69 | container_name: paperless_tika 70 | image: ghcr.io/paperless-ngx/tika:latest 71 | restart: unless-stopped 72 | ``` 73 | 74 | ## Backup 75 | 76 | `0 15 * * * docker exec paperless_db pg_dump -h localhost -U paperless paperless > /data/paperless/backups/paperless_$(date '+\%Y-\%m-\%d').sql` 77 | -------------------------------------------------------------------------------- /paperless-ngx/docker-compose.env: -------------------------------------------------------------------------------- 1 | # The UID and GID of the user used to run paperless in the container. Set this 2 | # to your UID and GID on the host so that you have write access to the 3 | # consumption directory. 4 | #USERMAP_UID=1000 5 | #USERMAP_GID=1000 6 | 7 | # Additional languages to install for text recognition, separated by a 8 | # whitespace. Note that this is 9 | # different from PAPERLESS_OCR_LANGUAGE (default=eng), which defines the 10 | # language used for OCR. 11 | # The container installs English, German, Italian, Spanish and French by 12 | # default. 13 | # See https://packages.debian.org/search?keywords=tesseract-ocr-&searchon=names&suite=buster 14 | # for available languages. 15 | #PAPERLESS_OCR_LANGUAGES=tur ces 16 | 17 | ############################################################################### 18 | # Paperless-specific settings # 19 | ############################################################################### 20 | 21 | # All settings defined in the paperless.conf.example can be used here. The 22 | # Docker setup does not use the configuration file. 23 | # A few commonly adjusted settings are provided below. 24 | 25 | # This is required if you will be exposing Paperless-ngx on a public domain 26 | # (if doing so please consider security measures such as reverse proxy) 27 | #PAPERLESS_URL=https://paperless.example.com 28 | 29 | # Adjust this key if you plan to make paperless available publicly. It should 30 | # be a very long sequence of random characters. You don't need to remember it. 31 | #PAPERLESS_SECRET_KEY=change-me 32 | 33 | # Use this variable to set a timezone for the Paperless Docker containers. If not specified, defaults to UTC. 34 | #PAPERLESS_TIME_ZONE=America/Los_Angeles 35 | 36 | # The default language to use for OCR. Set this to the language most of your 37 | # documents are written in. 38 | PAPERLESS_OCR_LANGUAGE=eng+spa 39 | 40 | # Set if accessing paperless via a domain subpath e.g. https://domain.com/PATHPREFIX and using a reverse-proxy like traefik or nginx 41 | #PAPERLESS_FORCE_SCRIPT_NAME=/PATHPREFIX 42 | #PAPERLESS_STATIC_URL=/PATHPREFIX/static/ # trailing slash required 43 | 44 | PAPERLESS_FILENAME_FORMAT={created_year}/{correspondent}/{title} 45 | -------------------------------------------------------------------------------- /pigallery/README.md: -------------------------------------------------------------------------------- 1 | # Pigallery2 2 | 3 | ```yml 4 | version: '3' 5 | services: 6 | 7 | pigallery2: 8 | image: bpatrik/pigallery2:latest 9 | container_name: pigallery2 10 | networks: 11 | - proxy 12 | environment: 13 | - NODE_ENV=production 14 | volumes: 15 | - "./data/config:/app/data/config" 16 | - "db-data:/app/data/db" 17 | - "./data/images:/app/data/images:ro" 18 | - "./data/tmp:/app/data/tmp" 19 | restart: unless-stopped 20 | labels: 21 | - "traefik.enable=true" 22 | - "traefik.http.routers.pigallery.entrypoints=https" 23 | - "traefik.http.routers.pigallery.rule=Host(`pigallery.domain.com`)" 24 | - "traefik.http.routers.pigallery.tls=true" 25 | - "traefik.http.services.pigallery.loadbalancer.server.port=80" 26 | 27 | volumes: 28 | db-data: 29 | 30 | networks: 31 | proxy: 32 | external: true 33 | ``` 34 | 35 | ## Config 36 | 37 | To allow [public browsing](https://github.com/bpatrik/pigallery2/issues/60) : 38 | - Disable password protection from GUI. 39 | - Manually edit config.json and set unAuthenticatedUserRole to a different value (Admin to User). 40 | -------------------------------------------------------------------------------- /piped/README.md: -------------------------------------------------------------------------------- 1 | # Piped 2 | 3 | First, install `git`, `docker` and `docker-compose`. 4 | 5 | Run `git clone https://github.com/TeamPiped/Piped-Docker`. 6 | 7 | Then, run `cd Piped-Docker`. 8 | 9 | Then, run `./configure-instance.sh` and fill in the hostnames when asked. Choose nginx as the reverse proxy when asked. 10 | 11 | The hostnames I have chosen: `piped`, `pipedapi`, `pipedproxy`. 12 | 13 | ## Docker compose (Change domain and POSTGRES_PASSWORD) 14 | 15 | ```yml 16 | services: 17 | pipedfrontend: 18 | image: 1337kavin/piped-frontend:latest 19 | restart: unless-stopped 20 | depends_on: 21 | - piped 22 | container_name: piped-frontend 23 | entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/pipedapi.domain.com/g 24 | /usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g 25 | "daemon off;"' 26 | networks: 27 | - proxy 28 | labels: 29 | - "traefik.enable=true" 30 | - "traefik.http.routers.piped.entrypoints=https" 31 | - "traefik.http.routers.piped.rule=Host(`piped.domain.com`)" 32 | - "traefik.http.routers.piped.tls=true" 33 | - "traefik.http.services.piped.loadbalancer.server.port=80" 34 | - "traefik.http.routers.piped.middlewares=authelia@docker" 35 | 36 | ytproxy: 37 | image: 1337kavin/ytproxy:latest 38 | restart: unless-stopped 39 | networks: 40 | - default 41 | volumes: 42 | - ytproxy:/app/socket 43 | container_name: piped-ytproxy 44 | 45 | piped: 46 | image: 1337kavin/piped:latest 47 | restart: unless-stopped 48 | volumes: 49 | - ./config/config.properties:/app/config.properties:ro 50 | networks: 51 | - default 52 | depends_on: 53 | - postgres 54 | container_name: piped-backend 55 | 56 | varnish: 57 | image: varnish:7.0-alpine 58 | restart: unless-stopped 59 | networks: 60 | - default 61 | - proxy 62 | volumes: 63 | - ./config/default.vcl:/etc/varnish/default.vcl:ro 64 | container_name: piped-varnish 65 | depends_on: 66 | - piped 67 | labels: 68 | - "traefik.enable=true" 69 | - "traefik.http.routers.pipedapi.entrypoints=https" 70 | - "traefik.http.routers.pipedapi.rule=Host(`pipedapi.domain.com`)" 71 | - "traefik.http.routers.pipedapi.tls=true" 72 | - "traefik.http.services.pipedapi.loadbalancer.server.port=80" 73 | healthcheck: 74 | test: ash -c "wget --no-verbose --tries=1 --spider 127.0.0.1:80/feed || 75 | (varnishreload && exit 1)" 76 | interval: 10s 77 | timeout: 10s 78 | retries: 1 79 | 80 | nginx: 81 | image: nginx:mainline-alpine 82 | restart: unless-stopped 83 | networks: 84 | - proxy 85 | - default 86 | volumes: 87 | - ./config/nginx.conf:/etc/nginx/nginx.conf:ro 88 | - ./config/pipedapi.conf:/etc/nginx/conf.d/pipedapi.conf:ro 89 | - ./config/pipedproxy.conf:/etc/nginx/conf.d/pipedproxy.conf:ro 90 | - ./config/pipedfrontend.conf:/etc/nginx/conf.d/pipedfrontend.conf:ro 91 | - ./config/ytproxy.conf:/etc/nginx/snippets/ytproxy.conf:ro 92 | - ytproxy:/var/run/ytproxy 93 | container_name: piped-nginx 94 | depends_on: 95 | - piped 96 | - varnish 97 | - ytproxy 98 | - pipedfrontend 99 | labels: 100 | - "traefik.enable=true" 101 | - "traefik.http.routers.pipedproxy.entrypoints=https" 102 | - "traefik.http.routers.pipedproxy.rule=Host(`pipedproxy.domain.com`)" 103 | - "traefik.http.routers.pipedproxy.tls=true" 104 | - "traefik.http.services.pipedproxy.loadbalancer.server.port=80" 105 | 106 | postgres: 107 | image: postgres:13-alpine 108 | restart: unless-stopped 109 | networks: 110 | - default 111 | volumes: 112 | - ./data/db:/var/lib/postgresql/data 113 | environment: 114 | - POSTGRES_DB=piped 115 | - POSTGRES_USER=piped 116 | - POSTGRES_PASSWORD={DB_PW} 117 | container_name: piped-postgres 118 | 119 | volumes: 120 | ytproxy: null 121 | networks: 122 | proxy: 123 | external: true 124 | ``` 125 | -------------------------------------------------------------------------------- /portainer/README.md: -------------------------------------------------------------------------------- 1 | # Portainer 2 | 3 | ```yml 4 | version: '3.3' 5 | services: 6 | portainer-ce: 7 | ports: 8 | - '8000:8000' 9 | - '9000:9000' 10 | container_name: portainer 11 | restart: always 12 | volumes: 13 | - '/var/run/docker.sock:/var/run/docker.sock' 14 | - 'portainer_data:/data' 15 | image: 'portainer/portainer-ce:latest' 16 | 17 | volumes: 18 | portainer_data: 19 | ``` -------------------------------------------------------------------------------- /rss-bridge/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | services: 3 | rss-bridge: 4 | image: rssbridge/rss-bridge:latest 5 | volumes: 6 | - ./config:/config 7 | ports: 8 | - 3500:80 9 | environment: 10 | - RSSBRIDGE_SYSTEM_ENABLED_BRIDGES=MangaDexBridge 11 | restart: unless-stopped 12 | -------------------------------------------------------------------------------- /send/README.md: -------------------------------------------------------------------------------- 1 | # Send 2 | 3 | ## Docker-compose 4 | 5 | ```yml 6 | version: "3" 7 | 8 | services: 9 | send: 10 | image: 'registry.gitlab.com/timvisee/send:latest' 11 | container_name: send 12 | restart: always 13 | networks: 14 | - proxy 15 | - default 16 | volumes: 17 | - ./uploads:/uploads 18 | environment: 19 | - VIRTUAL_HOST=send.domain.com 20 | - VIRTUAL_PORT=1234 21 | - DHPARAM_GENERATION=false 22 | - NODE_ENV=production 23 | - BASE_URL=https://send.domain.com 24 | - PORT=1234 25 | - REDIS_HOST=redis 26 | 27 | # To customize upload limits 28 | # - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000,31536000 29 | # - DEFAULT_EXPIRE_SECONDS=3600 30 | # - MAX_EXPIRE_SECONDS=31536000 31 | # - DOWNLOAD_COUNTS=1,2,5,10,15,25,50,100,1000 32 | # - MAX_DOWNLOADS=1000 33 | - MAX_FILE_SIZE=5368709120 34 | 35 | labels: 36 | - "traefik.enable=true" 37 | - "traefik.http.routers.send.entrypoints=https" 38 | - "traefik.http.routers.send.rule=Host(`send.domain.com`)" 39 | - "traefik.http.routers.send.tls=true" 40 | - "traefik.http.services.send.loadbalancer.server.port=1234" 41 | - "traefik.http.routers.send.middlewares=authelia@docker" 42 | 43 | redis: 44 | container_name: send-redis 45 | networks: 46 | - default 47 | image: 'redis:alpine' 48 | restart: always 49 | volumes: 50 | - send-redis:/data 51 | 52 | volumes: 53 | send-redis: 54 | 55 | networks: 56 | proxy: 57 | external: true 58 | ``` -------------------------------------------------------------------------------- /shiori/README.md: -------------------------------------------------------------------------------- 1 | # Shiori 2 | 3 | ```yml 4 | version: "3" 5 | services: 6 | shiori: 7 | image: radhifadlillah/shiori:latest 8 | container_name: shiori 9 | volumes: 10 | - ./:/srv/shiori 11 | restart: unless-stopped 12 | 13 | networks: 14 | - proxy 15 | 16 | labels: 17 | - "traefik.enable=true" 18 | - "traefik.http.routers.shiori.entrypoints=https" 19 | - "traefik.http.routers.shiori.rule=Host(`shiori.domain.com`)" 20 | - "traefik.http.routers.shiori.tls=true" 21 | - "traefik.http.services.shiori.loadbalancer.server.port=8080" 22 | 23 | networks: 24 | proxy: 25 | external: true 26 | ``` 27 | 28 | ## Startup 29 | 30 | Since this is our first time, we don't have any account registered yet. With that said, we can use the default user to access web interface : 31 | 32 | ``` 33 | username: shiori 34 | password: gopher 35 | ``` 36 | 37 | The first new account you add will become the owner and it will deactivate the "shiori:gopher" default user automatically. 38 | -------------------------------------------------------------------------------- /traefik/README.md: -------------------------------------------------------------------------------- 1 | # Traefik 2 | 3 | Check my [guide](https://www.fuzzygrim.com/posts/exposing-services) on how to setup Traefik with Authelia. 4 | 5 | ## Docker compose 6 | ```yml 7 | version: '3' 8 | 9 | services: 10 | traefik: 11 | image: traefik:latest 12 | container_name: traefik 13 | restart: unless-stopped 14 | security_opt: 15 | - no-new-privileges:true 16 | networks: 17 | - proxy 18 | ports: 19 | - 80:80 20 | - 443:443 21 | environment: 22 | - CF_API_EMAIL=${MAIL} 23 | - CF_API_KEY=${KEY} 24 | # be sure to use the correct one depending on if you are using a token or key 25 | volumes: 26 | - /etc/localtime:/etc/localtime:ro 27 | - /var/run/docker.sock:/var/run/docker.sock:ro 28 | - ./data/traefik.yml:/traefik.yml:ro 29 | - ./data/acme.json:/acme.json 30 | - ./data/config.yml:/config.yml:ro 31 | - /var/log/traefik:/var/log/traefik 32 | labels: 33 | - "traefik.enable=true" 34 | - "traefik.http.routers.traefik.entrypoints=https" 35 | - "traefik.http.routers.traefik.rule=Host(`traefik.domain.com`)" 36 | - "traefik.http.middlewares.traefik-auth.basicauth.users=user:password" 37 | - "traefik.http.routers.traefik.tls=true" 38 | - "traefik.http.routers.traefik.middlewares=traefik-auth" 39 | - "traefik.http.routers.traefik.tls.certresolver=cloudflare" 40 | - "traefik.http.routers.traefik.tls.domains[0].main=domain.com" 41 | - "traefik.http.routers.traefik.tls.domains[0].sans=*.domain.com" 42 | - "traefik.http.routers.traefik.service=api@internal" 43 | 44 | networks: 45 | proxy: 46 | external: true 47 | ``` 48 | 49 | Then: `touch ./data/acme.json && chmod 600 ./data/acme.json` 50 | 51 | ## ./data/config.yml 52 | ```yml 53 | http: 54 | middlewares: 55 | https-redirect: 56 | redirectScheme: 57 | scheme: https 58 | permanent: true 59 | authelia: 60 | forwardAuth: 61 | address: "http://authelia:9091/api/verify?rd=https://auth.domain.com" 62 | default-headers: 63 | headers: 64 | frameDeny: true 65 | sslRedirect: true 66 | browserXssFilter: true 67 | contentTypeNosniff: true 68 | forceSTSHeader: true 69 | stsIncludeSubdomains: true 70 | stsPreload: true 71 | stsSeconds: 15552000 72 | customFrameOptionsValue: SAMEORIGIN 73 | customRequestHeaders: 74 | X-Forwarded-Proto: https 75 | X-Robots-Tag: "noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex" 76 | 77 | secured: 78 | chain: 79 | middlewares: 80 | - default-headers 81 | ``` 82 | 83 | ## ./data/traefik.yml 84 | ```yml 85 | api: 86 | dashboard: true 87 | debug: true 88 | 89 | entryPoints: 90 | http: 91 | address: ":80" 92 | http: 93 | redirections: 94 | entryPoint: 95 | to: https 96 | scheme: https 97 | permanent: true 98 | 99 | https: 100 | address: ":443" 101 | forwardedHeaders: 102 | trustedIPs: 103 | - "192.168.0.0/16" 104 | 105 | serversTransport: 106 | insecureSkipVerify: true 107 | 108 | providers: 109 | docker: 110 | endpoint: "unix:///var/run/docker.sock" 111 | exposedByDefault: false 112 | file: 113 | filename: /config.yml 114 | certificatesResolvers: 115 | cloudflare: 116 | acme: 117 | email: ${MAIL} 118 | storage: acme.json 119 | dnsChallenge: 120 | provider: cloudflare 121 | resolvers: 122 | - "1.1.1.1:53" 123 | - "1.0.0.1:53" 124 | 125 | log: 126 | level: "ERROR" 127 | filePath: "/var/log/traefik/traefik.log" 128 | accessLog: 129 | filePath: "/var/log/traefik/access.log" 130 | filters: 131 | statusCodes: 132 | - "500" 133 | - "403" 134 | ``` 135 | 136 | 137 | ## Fail2Ban samples 138 | 139 | ### FreshRSS 140 | [Definition] 141 | failregex = ^ \- \S+ \[\] "POST .*c=auth&a=login HTTP\/1\.1" 403 \d+ "-" "-" \d+ "freshrss@docker" .+$ 142 | 143 | ### Shiori 144 | tion] 145 | failregex = ^ \- \S+ \[\] "POST \/api\/login HTTP\/1\.1" 500 \d+ "-" "-" \d+ "shiori@docker" .+$ 146 | -------------------------------------------------------------------------------- /umami/README.md: -------------------------------------------------------------------------------- 1 | # Umami 2 | 3 | First copy [schema](https://github.com/mikecao/umami/blob/master/sql/schema.postgresql.sql) 4 | to `sql/schema.postgresql.sql`. 5 | 6 | ```yml 7 | version: '3' 8 | services: 9 | umami: 10 | container_name: umami 11 | image: ghcr.io/mikecao/umami:postgresql-latest 12 | networks: 13 | - proxy 14 | - default 15 | environment: 16 | - DATABASE_URL=postgresql://umami:${PASS}@db:5432/umami 17 | - DATABASE_TYPE=postgresql 18 | - HASH_SALT=${SALT} 19 | - REMOVE_TRAILING_SLASH=1 20 | - TRACKER_SCRIPT_NAME=${SCRIPT} 21 | depends_on: 22 | - db 23 | restart: unless-stopped 24 | labels: 25 | - "traefik.enable=true" 26 | - "traefik.http.routers.umami.entrypoints=https" 27 | - "traefik.http.routers.umami.rule=Host(`umami.domain.com`)" 28 | - "traefik.http.routers.umami.tls=true" 29 | - "traefik.http.services.umami.loadbalancer.server.port=3000" 30 | 31 | db: 32 | container_name: umami-db 33 | image: postgres:12-alpine 34 | networks: 35 | - default 36 | environment: 37 | - POSTGRES_DB=umami 38 | - POSTGRES_USER=umami 39 | - POSTGRES_PASSWORD=${PASS} 40 | volumes: 41 | - ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro 42 | - ./db:/var/lib/postgresql/data 43 | restart: unless-stopped 44 | 45 | networks: 46 | proxy: 47 | external: true 48 | ``` 49 | 50 | ## Backup 51 | 52 | `0 21 * * * docker exec umami-db pg_dump -h localhost -U umami umami > /home/user/docker/umami/backups/umami_$(date '+\%Y-\%m-\%d').sql` 53 | -------------------------------------------------------------------------------- /uptime-kuma/README.md: -------------------------------------------------------------------------------- 1 | # Uptime Kuma 2 | 3 | ```yml 4 | version: "3.3" 5 | 6 | services: 7 | uptime-kuma: 8 | image: louislam/uptime-kuma:1 9 | container_name: uptime-kuma 10 | networks: 11 | - proxy 12 | volumes: 13 | - ./data:/app/data 14 | restart: unless-stopped 15 | security_opt: 16 | - no-new-privileges:true 17 | labels: 18 | - "traefik.enable=true" 19 | - "traefik.http.routers.uptime.entrypoints=https" 20 | - "traefik.http.routers.uptime.rule=Host(`uptime.domain.com`)" 21 | - "traefik.http.routers.uptime.tls=true" 22 | - "traefik.http.services.uptime.loadbalancer.server.port=3001" 23 | 24 | networks: 25 | proxy: 26 | external: true 27 | ``` 28 | -------------------------------------------------------------------------------- /vaultwarden/README.md: -------------------------------------------------------------------------------- 1 | # Vaultwarden 2 | 3 | ## Docker Compose 4 | ```yml 5 | version: '3' 6 | 7 | services: 8 | vaultwarden: 9 | image: vaultwarden/server:latest 10 | container_name: vaultwarden 11 | restart: always 12 | environment: 13 | - WEBSOCKET_ENABLED=true # Enable WebSocket notifications. 14 | volumes: 15 | - ./vw-data:/data 16 | environment: 17 | - SIGNUPS_ALLOWED=false 18 | - IP_HEADER=CF-Connecting-IP 19 | - LOG_FILE=/data/vaultwarden.log 20 | - LOG_LEVEL=warn 21 | networks: 22 | - proxy 23 | labels: 24 | - "traefik.enable=true" 25 | - "traefik.http.routers.vaultwarden.entrypoints=https" 26 | - "traefik.http.routers.vaultwarden.rule=Host(`vaultwarden.domain.com`)" 27 | - "traefik.http.routers.vaultwarden.tls=true" 28 | - "traefik.http.services.vaultwarden.loadbalancer.server.port=80" 29 | 30 | networks: 31 | proxy: 32 | external: true 33 | ``` 34 | 35 | ## Backup 36 | 37 | Add to `crontab -e` 38 | ``` 39 | sqlite3 /data/vaultwarden/db.sqlite3 ".backup '/data/vaultwarden/db_bak/db-$(date '+\%Y-\%m-\%d').sqlite3'" 40 | ``` 41 | -------------------------------------------------------------------------------- /wallabag/README.md: -------------------------------------------------------------------------------- 1 | # Wallabag 2 | 3 | ```yml 4 | version: '3.3' 5 | services: 6 | wallabag: 7 | container_name: wallabag 8 | image: wallabag/wallabag 9 | restart: unless-stopped 10 | volumes: 11 | - ./data:/var/www/wallabag/data 12 | - ./images:/var/www/wallabag/web/assets/images 13 | networks: 14 | - proxy 15 | environment: 16 | - SYMFONY__ENV__FOSUSER_REGISTRATION=false 17 | - SYMFONY__ENV__DOMAIN_NAME=https://wallabag.domain.com 18 | - SYMFONY__ENV__FOSUSER_CONFIRMATION=false 19 | labels: 20 | - "traefik.enable=true" 21 | - "traefik.http.routers.wallabag.entrypoints=https" 22 | - "traefik.http.routers.wallabag.rule=Host(`wallabag.domain.com`)" 23 | - "traefik.http.routers.wallabag.tls=true" 24 | - "traefik.http.services.wallabag.loadbalancer.server.port=80" 25 | - "traefik.http.routers.wallabag.middlewares=authelia@docker" 26 | 27 | networks: 28 | proxy: 29 | external: true 30 | ``` -------------------------------------------------------------------------------- /watchtower/README.md: -------------------------------------------------------------------------------- 1 | # Watchtower 2 | 3 | ## Docker Compose 4 | ```yml 5 | version: "3" 6 | services: 7 | watchtower: 8 | container_name: watchtower 9 | image: containrrr/watchtower 10 | restart: unless-stopped 11 | volumes: 12 | - /var/run/docker.sock:/var/run/docker.sock 13 | environment: 14 | TZ: Europe/Madrid 15 | WATCHTOWER_SCHEDULE: 0 30 18 * * * 16 | WATCHTOWER_CLEANUP: "true" 17 | WATCHTOWER_NO_STARTUP_MESSAGE: "true" 18 | WATCHTOWER_NOTIFICATIONS: "shoutrrr" 19 | WATCHTOWER_NOTIFICATION_URL: ${URL} 20 | ``` -------------------------------------------------------------------------------- /wg-easy/README.md: -------------------------------------------------------------------------------- 1 | # WireGuard Easy 2 | 3 | ```yml 4 | version: "3.8" 5 | services: 6 | wg-easy: 7 | environment: 8 | - WG_HOST=domain.duckdns.org 9 | - WG_PORT=4500 10 | 11 | image: weejewel/wg-easy 12 | container_name: wg-easy 13 | volumes: 14 | - ./config:/etc/wireguard 15 | ports: 16 | - "4500:51820/udp" 17 | - "51821:51821/tcp" 18 | restart: unless-stopped 19 | cap_add: 20 | - NET_ADMIN 21 | - SYS_MODULE 22 | sysctls: 23 | - net.ipv4.ip_forward=1 24 | - net.ipv4.conf.all.src_valid_mark=1 25 | ``` 26 | 27 | If you are using Proxmox's LXC, edit `/etc/pve/lxc/.conf` and add: 28 | 29 | ```bash 30 | lxc.cap.drop: 31 | ``` 32 | --------------------------------------------------------------------------------