2023-10-25 04:10:09 +00:00
|
|
|
volumes:
|
|
|
|
traefik:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
name: traefik
|
|
|
|
|
|
|
|
services:
|
|
|
|
traefik:
|
|
|
|
image: "${IMAGE:-traefik}:${VERSION:-latest}"
|
|
|
|
container_name: "${NAME:-traefik}"
|
|
|
|
command:
|
|
|
|
- --providers.docker=true
|
|
|
|
- --providers.docker.exposedbydefault=${EXPOSED_BY_DEFAULT:-false}
|
2024-04-20 03:20:57 +00:00
|
|
|
- --api.dashboard=${DASHBOARD:-false}
|
2023-10-25 04:10:09 +00:00
|
|
|
- --api.debug=${DEBUG:-false}
|
|
|
|
- --log.level=${LOG_LEVEL:-ERROR}
|
|
|
|
- --entrypoints.web.address=:80
|
2023-10-30 02:14:30 +00:00
|
|
|
- --entrypoints.local.address=:8443
|
2023-10-25 04:10:09 +00:00
|
|
|
ports:
|
2023-11-26 21:44:36 +00:00
|
|
|
- "${WEB_PORT:-127.0.0.1:8000:80}"
|
2023-10-30 02:14:30 +00:00
|
|
|
- "${LOCAL_PORT:-127.0.0.1:8443:8443}"
|
2023-10-25 04:10:09 +00:00
|
|
|
labels:
|
|
|
|
- "traefik.http.routers.${ROUTER:-traefik}.rule=Host(`${DOMAIN:-traefik.local.krislamo.org}`)"
|
|
|
|
- "traefik.http.routers.${ROUTER:-traefik}.service=api@internal"
|
2023-10-30 02:14:30 +00:00
|
|
|
- "traefik.http.routers.${ROUTER:-traefik}.entrypoints=${ENTRYPOINT:-local}"
|
2024-04-20 03:20:57 +00:00
|
|
|
- "traefik.http.routers.${ROUTER:-traefik}.tls=${DASHBOARD_TLS:-true}"
|
2023-10-25 04:10:09 +00:00
|
|
|
- "traefik.docker.network=${NETWORK:-traefik}"
|
2024-04-20 03:20:57 +00:00
|
|
|
- "traefik.enable=${DASHBOARD:-false}"
|
2023-10-25 04:10:09 +00:00
|
|
|
networks:
|
|
|
|
- traefik
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- "traefik:/etc/traefik"
|