Just some templates to get someone started with hosting various servers in Docker
Just some templates to get someone started with hosting various servers in Docker
Thank you, everyone for your interest in my project! What started as a learning opportunity/something to build for my friends got a lot more popular than I ever expected. That said, I am discontinuing work on this project and archiving it. The project is just too much for me to manage on my own and there are already other projects that are much more polished, with CLI and GUIs for launching far more self-hosted services than I could ever hope to develop on my own. If this project has been useful to you, I recommend checking out HomelabOS, DockSTARTer, and Yacht.
Due to Traefik's recent upgrade to version 2.0, all traefik configuration in these templates will not work with the traefik:latest image. If you pulled, forked, cloned, or otherwise used these templates in your own project/organization, it is recommended that you git pull to get the latest commit in which I changed the traefik image used to traefik:v1.7-alpine, the last traefik version compatible with these templates as currently written, while I read Traefik's migration guide, rewrite and test these templates to make them compatible with Traefik 2.0 (and hopefully onward!).
This repository contains what you need to get started self-hosting various services while also giving you a little knowledge around docker and docker-compose. The templates will set up the following:
To-dos
In no particular order, things I hope to add templates for. Also taking requests.
Watch this short video for a quick explanation of what Docker is, how it is different than a Virtual Machine, and why one would use Docker instead of a full virtual machine.
You will need a computer, preferably running Linux, but anything will do. ² Download and install Docker and Docker-compose following the instructions for your OS. These templates were written using the Docker-compose 3.5 file format, therefore you must have docker version 17.12.0 or greater and a recent docker-compose version, ideally the most recent. If you installed docker or docker-compose from your distro's standard software sources, it is likely you are using an old version of one or both of them. It is recommended that you install both following the directions below.
Please also, in a developer's text editor e.g. NotePad++, read through base.yml as it contains detailed instructions in the form of comments. Before starting your stack, you will need to
cp template.env .env and edit .env to contain your configuration WARNING: Never commit and push your changes to .env to a public git repository unless you want to get hacked!! You would basically be telling everyone where to find you and telling them your adminstrative passwords if you do!It may be helpful to understand the role of a reverse proxy. In short, a reverse proxy is like a web server, except it doen't just serve its own web content, it can also receive requests for MANY web servers/services and forward the requests to the appropriate destination based on critera, such as the host name that was requested (e.g. http://example1.example.com vs http://example2.example.com), or the path of the requested content, if a request going to a single domain may need to go to a different destination for some paths (http://example.com/example/path/to/file/ vs http://example.com/example/api/). There are many reverse proxies available and available as docker containers (Apache, NGinX, Traefik, and others). I used Traefik in the templates for its ease of use (I understood its configuration better than I did NGinX or Apache), but one could substitute a reverse proxy of their choice if they configure it similarly to how I configured Traefik to work. Traefik bills itself as being specifically adapted for deploying microservices and is compatible with many tools/infrastructures (specifically Docker, Docker-Compose, and Let's Encrypt), and unlike NGinX or Apache which take a static configuration file and c
No open issues yet, or sync has not completed.