Opinionated collection of docker-compose.yml
MIT License
My personal choice of self-hosted apps.
This project is accompanied by toots on Mastodon: mastodon.social/@holtwick.
New entries from time to time...
I run my stuff on a cloud server instance at Hetzner. There I choose the "Docker" presets. Any other provider will probably work as well.
Then the first thing to do is to set up a Nginx Proxy Manager. This is as easy as creating a folder named proxy
and put this docker-compose.yml
file in it. Then start with docker compose up -d
.
The proxy does two things:
Now we can get started setting up more services. The best thing to do upfront is to configure a wildcard in your DNS, like *.selfhosted.example.com
pointing to your cloud server instance.
To install a project:
docker-compose.yml
to a subfolder on your cloud server.docker compose up -d
.my.selfhosted.example.com
http
container_name
you chose in the docker-compose.yml
.Please note, that each docker-compose.yml
includes these lines:
networks:
default:
external:
name: proxy
This is required to allow connection to the Nginx Proxy.
Another convention is to not use Docker volumes but redirect to a local data
folder. This helps with backups and porting to other instances.