mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-24 12:31:13 +00:00
Update docker-compose.yml
This commit is contained in:
parent
d85345225f
commit
086c76154d
|
@ -15,13 +15,13 @@ services:
|
||||||
- proxy
|
- proxy
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Berlin
|
- TZ=Europe/Berlin
|
||||||
#- CF_DNS_API_TOKEN=MyCloudflareApiToken # change this
|
- CF_DNS_API_TOKEN=MyCloudflareApiToken # change this
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.api.rule=Host(`traefik.example.com`) # Define the subdomain for the traefik dashboard.
|
- traefik.http.routers.api.rule=Host(`traefik.example.com`) # Define the subdomain for the traefik dashboard.
|
||||||
- traefik.http.routers.api.service=api@internal # Enable Traefik API.
|
- traefik.http.routers.api.service=api@internal # Enable Traefik API.
|
||||||
#- traefik.http.routers.api.middlewares=local-ipwhitelist@file,basic-auth@file
|
- traefik.http.routers.api.middlewares=local-ipwhitelist@file,basic-auth@file # protect dashboard with basic auth and restrict access to private class subnets only
|
||||||
- traefik.http.middlewares.basic-auth-global.basicauth.users=admin:$$apr1$$epoKf5li$$QfTMJZOCS/halv3CiIUEu0 # protect the traefik dashboard by basic auth (pw=password)
|
#- traefik.http.middlewares.basic-auth-global.basicauth.users=admin:$$apr1$$epoKf5li$$QfTMJZOCS/halv3CiIUEu0 # protect the traefik dashboard by basic auth (pw=password)
|
||||||
restart: always
|
restart: always
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- host.docker.internal:172.17.0.1
|
- host.docker.internal:172.17.0.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user