This commit is contained in:
Kris Lamoureux 2023-10-19 02:14:52 -04:00
parent 646c884639
commit f8bb093e63

View File

@ -9,8 +9,8 @@ networks:
services: services:
traefik: traefik:
image: "${IMAGE:-traefik}:${VERSION:-latest}" image: ${IMAGE:-traefik}:${VERSION:-latest}
container_name: "${NAME:-traefik}" container_name: ${NAME:-traefik}
command: command:
- --providers.docker=true - --providers.docker=true
- --providers.docker.exposedbydefault=${EXPOSED_BY_DEFAULT:-false} - --providers.docker.exposedbydefault=${EXPOSED_BY_DEFAULT:-false}
@ -24,18 +24,18 @@ services:
- --entrypoints.web.http.redirections.entrypoint.scheme=https - --entrypoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.web.http.redirections.entrypoint.permanent=true - --entrypoints.web.http.redirections.entrypoint.permanent=true
ports: ports:
- "${WEB_PORT:-0.0.0.0:80:80}" - ${WEB_PORT:-0.0.0.0:80}:80
- "${WEBSECURE_PORT:-0.0.0.0:443:443}" - ${WEBSECURE_PORT:-0.0.0.0:443}:443
- "${LOCAL_PORT:-127.0.0.1:8443:8443}" - ${LOCAL_PORT:-127.0.0.1:8443}:8443
labels: labels:
traefik.http.routers.traefik.rule: Host(`${DOMAIN:-traefik.local.krislamo.org}`) - traefik.http.routers.${ROUTER:-traefik}.rule=Host(`${DOMAIN:-traefik.local.krislamo.org}`)
traefik.http.routers.traefik.service: api@internal - traefik.http.routers.${ROUTER:-traefik}.service=api@internal
traefik.http.routers.traefik.entrypoints: ${ENTRYPOINT:-local} - traefik.http.routers.${ROUTER:-traefik}.entrypoints=${ENTRYPOINT:-local}
traefik.http.routers.traefik.tls: true - traefik.http.routers.${ROUTER:-traefik}.tls=${ENABLE_TLS:-true}
traefik.docker.network: ${NETWORK:-traefik} - traefik.docker.network=${NETWORK:-traefik}
traefik.enable: ${ENABLE:-false} - traefik.enable=${TRAEFIK_ENABLE:-false}
networks: networks:
- traefik - ${NETWORK:-traefik}
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- "traefik:/etc/traefik" - traefik:/etc/traefik