2020-05-15 23:34:50 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
traefik:
|
2021-03-09 09:30:20 +01:00
|
|
|
name: ${TRAEFIK_VOLUME_NAME:-traefik}
|
2020-05-15 23:34:50 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
2021-03-09 09:30:20 +01:00
|
|
|
name: ${TRAEFIK_NETWORK_NAME:-traefik}
|
2020-05-15 23:34:50 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
traefik:
|
2021-03-09 09:30:20 +01:00
|
|
|
container_name: ${TRAEFIK_CONTAINER_NAME:-traefik}
|
2022-02-21 23:00:00 +01:00
|
|
|
image: ${TRAEFIK_IMAGE:-traefik:v2.6.1@sha256:9c248cbc8c7f53de29903b1875a6d188e736916a0ef040e18707279993f39fe9}
|
2020-05-15 23:34:50 +02:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2021-11-11 09:37:33 +01:00
|
|
|
- traefik:/traefik
|
2020-05-15 23:34:50 +02:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
ports:
|
|
|
|
- target: 80
|
|
|
|
published: 80
|
|
|
|
protocol: tcp
|
|
|
|
mode: host
|
|
|
|
networks:
|
2021-11-11 09:37:33 +01:00
|
|
|
- traefik
|
2020-05-15 23:34:50 +02:00
|
|
|
command:
|
2021-11-11 09:45:30 +01:00
|
|
|
- --api.insecure=${TRAEFIK_API_INSECURE:-true}
|
|
|
|
- --log.level=${TRAEFIK_LOG_LEVEL:-INFO}
|
|
|
|
- --global.sendanonymoususage=${TRAEFIK_GLOBAL_SENDANONYMOUSUSAGE:-false}
|
|
|
|
- --global.checknewversion=${TRAEFIK_GLOBAL_CHECKNEWVERSION:-false}
|
|
|
|
- --pilot.dashboard=${TRAEFIK_PILOT_DASHBOARD:-false}
|
|
|
|
- --metrics.prometheus=${TRAEFIK_METRICS_PROMETHEUS:-true}
|
2021-11-11 09:47:00 +01:00
|
|
|
- --accesslog=${TRAEFIK_ACCESSLOG:-false}
|
2020-05-15 23:34:50 +02:00
|
|
|
|
|
|
|
- --providers.docker
|
|
|
|
- --providers.docker.exposedbydefault=false
|
2021-03-09 09:30:20 +01:00
|
|
|
- --providers.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
|
2020-05-15 23:34:50 +02:00
|
|
|
|
2021-11-24 16:49:51 +01:00
|
|
|
- --entryPoints.traefik.address=:8080
|
2021-11-11 09:43:12 +01:00
|
|
|
|
2021-11-24 16:31:11 +01:00
|
|
|
- --entrypoints.${TRAEFIK_ENTRYPOINTS:-web}.address=:80
|
|
|
|
- --entryPoints.${TRAEFIK_ENTRYPOINTS:-web}.forwardedHeaders.insecure
|
2020-05-15 23:34:50 +02:00
|
|
|
labels:
|
2021-11-24 16:28:03 +01:00
|
|
|
- traefik.enable=true
|
2021-11-24 16:49:51 +01:00
|
|
|
- traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:?err}`)
|
|
|
|
- traefik.http.routers.traefik.entrypoints=${TRAEFIK_ENTRYPOINTS:-web}
|
|
|
|
- traefik.http.services.traefik.loadbalancer.server.port=8080
|