My docker-compose setup for Traefik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Julian Leyh 18bbb6a685
remove problematic contentSecurityPolicy (breaks Nextcloud)
12 months ago
data remove problematic contentSecurityPolicy (breaks Nextcloud) 12 months ago
.gitignore initial import 12 months ago
LICENSE.txt initial import 12 months ago
README.adoc add creation of network to readme file 12 months ago
docker-compose.yml initial import 12 months ago
init.sh initial import 12 months ago

README.adoc

This is the docker-compose configuration used for my setup, which includes my personal homepage and NextCloud.

License

Copyright © 2020, Julian Leyh <julian@vgai.de>

Licensed under the MIT License, see LICENSE.txt.

Usage

First, run init.sh, to create the files that are not stored in git (acme.json, logfile, .htpasswd).

Next, modify the configuration to your needs:

  • Set your Email-Address in data/traefik.yml

  • Change the hostname from traefik.vgai.de to the one you want to use for the dashboard in docker-compose.yml

You have to create a docker network using following command:

docker network create traefik_proxy

Now you can run it:

docker-compose up -d

Check the dashboard by accessing the hostname you specified in the docker-compose.yml. Every http request should be redirected to https. If you get a certification warning in your browser, try again a few moments later, since it has to fetch one from LetsEncrypt.

See my other docker-compose repos for how the labels need to be set up for Traefik.