feat(Directus): Add variable for Traefik router name

This commit is contained in:
Simon 2021-10-08 12:50:31 +02:00
parent 6c4c387234
commit d1b92e0a17
1 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ services:
PUID: ${DIRECTUS_PUID:-1000}
PGID: ${DIRECTUS_PGID:-1000}
labels:
traefik.enable: 'true'
traefik.docker.network: ${TRAEFIK_NETWORK_NAME:-traefik}
traefik.http.routers.directus.rule: 'Host(`${DIRECTUS_DOMAIN:?err}`)'
traefik.http.routers.directus.entrypoints: 'web'
- traefik.enable=true
- traefik.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-directus}.rule=Host(`${DIRECTUS_DOMAIN:?err}`)
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-directus}.entrypoints=web