Version: 2.0
A Simple Docker Compose File to run Traefik with Cloudflare SSL certificates to provide wildcard SSL certificates to internal Homelab services. This can be used standalone, but it's tailored to go along my Nextcloud all-in-one Docker Compose Stack: https://github.com/Andreaux/Nextcloud-Docker-Compose
If you are using a previous version of this Docker Compose file, this version has transitioned to persisting configuration and certificates on an NFS share. Do not simply update to this version without understanding the difference.
- Create a Cloudflare account and set up DNS for the domain you want to use with your HomeLab
- Create an API key with Cloudflare
- Edit data/traefik.yml and fill in your Cloudflare-registered e-mail address
- Modify the .env file (or set up the same environment variables if you're using a package manager like Portainer for example) and fill in your Cloudflare username and API token or key, as well as the other variables for the docker-compose.yml.
- Rename default.config.yml into config.yml and enable/set up what you need (or leave as-is for now)
- Edit traefik.yml and add your e-mail address you use with Cloudflare
- Create a folder for the persistent data somewhere, copy the contents of /data in there and share it with NFS. You can use a local folder too, in that case remove the NFS definition at the top and change the volume mapping in the compose file -- instructions are there)
- Create and launch Traefik with docker-compose up -d
Everything should "just work".
If you find this useful, a coffee through Ko-Fi is all it takes to make me happy <3 (I love coffee :D) Click the Sponsor button on the top of this page or visit https://ko-fi.com/andreaux to buy me a coffee.