Added Pi-Hole to Network. Chagned Domain. Traefik extra providers

This commit is contained in:
Florian Zirker 2021-05-22 12:33:40 +02:00
parent 5e7be8598e
commit 2bce33d9ca
6 changed files with 47 additions and 18 deletions

View file

@ -5,12 +5,6 @@ services:
traefik:
image: traefik:v2.4
restart: always
command:
- "--api.insecure=true"
#- "--accesslog=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "443:443"
@ -18,6 +12,8 @@ services:
- web
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "$PWD/traefik.yml:/etc/traefik/traefik.yml"
- "$PWD/extraProviders/:/extraProviders:ro"
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.${DOMAIN}`)"