Update traefik
This commit is contained in:
@@ -10,27 +10,24 @@ services:
|
|||||||
env_file: .env
|
env_file: .env
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.traefik.entrypoints=http
|
- traefik.http.routers.traefik.entrypoints=web
|
||||||
- traefik.http.routers.traefik.rule=Host(`traefik.local.${DOMAIN_NAME}`)
|
- traefik.http.routers.traefik.rule=Host(`traefik.local.${DOMAIN_NAME}`)
|
||||||
- traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_DASHBOARD_CREDENTIALS}
|
- traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_DASHBOARD_CREDENTIALS}
|
||||||
- traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https
|
- traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https
|
||||||
- traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https
|
- traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https
|
||||||
- traefik.http.routers.traefik.middlewares=traefik-https-redirect
|
- traefik.http.routers.traefik.middlewares=traefik-https-redirect
|
||||||
- traefik.http.routers.traefik-secure.entrypoints=https
|
- traefik.http.routers.traefik-secure.entrypoints=websecure
|
||||||
- traefik.http.routers.traefik-secure.rule=Host(`traefik.local.${DOMAIN_NAME}`)
|
- traefik.http.routers.traefik-secure.rule=Host(`traefik.local.${DOMAIN_NAME}`)
|
||||||
- traefik.http.routers.traefik-secure.middlewares=traefik-auth
|
- traefik.http.routers.traefik-secure.middlewares=traefik-auth
|
||||||
- traefik.http.routers.traefik-secure.tls=true
|
|
||||||
- traefik.http.routers.traefik-secure.tls.certresolver=cloudflare
|
|
||||||
- traefik.http.routers.traefik-secure.tls.domains[0].main=local.${DOMAIN_NAME}
|
|
||||||
- traefik.http.routers.traefik-secure.tls.domains[0].sans=*.local.${DOMAIN_NAME}
|
|
||||||
- traefik.http.routers.traefik-secure.service=api@internal
|
- traefik.http.routers.traefik-secure.service=api@internal
|
||||||
environment:
|
environment:
|
||||||
CF_DNS_API_TOKEN_FILE: /run/secrets/cf_api_token
|
- CF_DNS_API_TOKEN_FILE=/run/secrets/cf_api_token
|
||||||
TRAEFIK_DASHBOARD_CREDENTIALS: ${TRAEFIK_DASHBOARD_CREDENTIALS}
|
- TRAEFIK_DASHBOARD_CREDENTIALS=${TRAEFIK_DASHBOARD_CREDENTIALS}
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/traefik.yml:/traefik.yml:ro
|
- ./data/traefik.yml:/traefik.yml:ro
|
||||||
- ./data/acme.json:/acme.json
|
- ./data/acme.json:/acme.json # chmod 600
|
||||||
- ./data/config.yml:/config.yml:ro
|
- ./data/config.yml:/config.yml:ro
|
||||||
|
- ./logs:/var/log/traefik
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
ports:
|
ports:
|
||||||
Reference in New Issue
Block a user