docker compose files for traefik, nextcloud and nginx
- Docker version 20.10.6, build 370c289
- docker-compose version 1.25.5, build 8a1c60f6
ENV
Adjust the the .env files in nextcloud, traefik, nginx and dozzle
in line 26 in traefik/docker-compose.yml enter your basic auth string (replace USER:AUTH). You can generate the authentification string with this commands:
apt-get install apache2-utils
echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g
Next Steps
- change the emailadress in traefik/volume/traefik.yml file (line 20)
docker network create proxy
bash startall.sh
Nextcloud After the nextcloud url has been called, nextcloud must be configured like this
if you get permission denied error after clicking "finish installation" you have to delete the volumes and restart the containers.
You can use the nginx docker-compose.yaml file as a template. You have to adjust the labels for the new container in the docker-compose.yml file. (see example in dozzle/docker-compose.yml)
For demonstration purpose I added dozzle. With dozzle you can view your container logs on a webpage.
I edited the following labels
I also added basic authentifcation to the labels with the following two lines. The same as the traefik container, only with replacing traefik with dozzle and changing USER:PASS authentification string.
- "traefik.http.middlewares.dozzle-auth.basicauth.users=USER:PASS"
- "traefik.http.routers.dozzle-secure.middlewares=secHeaders@file,dozzle-auth"
In the .env file I changed the url.
All contributions are welcome.