rearranged service instructions

This commit is contained in:
Bryan Joshua Pedini 2022-01-15 22:35:10 +01:00
parent ccf95deedc
commit 46a8794a7c

View File

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