rearranged service instructions
This commit is contained in:
parent
ccf95deedc
commit
46a8794a7c
@ -2,6 +2,9 @@ version: "3"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
traefik:
|
traefik:
|
||||||
|
image: traefik:${TRAEFIK_VERSION}
|
||||||
|
container_name: ${TRAEFIK_CONTAINER_NAME}
|
||||||
|
restart: unless-stopped
|
||||||
command:
|
command:
|
||||||
# when debugging is needed
|
# when debugging is needed
|
||||||
- --accesslog=${TRAEFIK_ACCESSLOG}
|
- --accesslog=${TRAEFIK_ACCESSLOG}
|
||||||
@ -28,10 +31,8 @@ services:
|
|||||||
# should not need, but just in case, a dynamic config file is also configured
|
# should not need, but just in case, a dynamic config file is also configured
|
||||||
- --providers.file.directory=/dynamic-config
|
- --providers.file.directory=/dynamic-config
|
||||||
- --providers.file.watch=true
|
- --providers.file.watch=true
|
||||||
container_name: ${TRAEFIK_CONTAINER_NAME}
|
|
||||||
environment:
|
environment:
|
||||||
- HETZNER_API_KEY=${HETZNER_API_KEY}
|
- HETZNER_API_KEY=${HETZNER_API_KEY}
|
||||||
image: traefik:${TRAEFIK_VERSION}
|
|
||||||
labels:
|
labels:
|
||||||
# expose Træfik using Træfik (dashboard)
|
# expose Træfik using Træfik (dashboard)
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
@ -63,7 +64,6 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ./config:/dynamic-config:ro
|
- ./config:/dynamic-config:ro
|
||||||
|
Loading…
Reference in New Issue
Block a user