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}
|
2021-03-09 09:44:47 +01:00
|
|
|
image: ${TRAEFIK_IMAGE:-traefik:v2.4.7}
|
2020-05-15 23:34:50 +02:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2021-03-09 09:30:20 +01:00
|
|
|
- ${TRAEFIK_VOLUME_NAME:-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-03-09 09:30:20 +01:00
|
|
|
- ${TRAEFIK_NETWORK_NAME:-traefik}
|
2020-05-15 23:34:50 +02:00
|
|
|
command:
|
|
|
|
- --api.insecure=true
|
|
|
|
- --log.level=INFO
|
|
|
|
- --global.sendanonymoususage=false
|
|
|
|
- --global.checknewversion=false
|
2021-02-24 16:36:05 +01:00
|
|
|
- --metrics.prometheus=true
|
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
|
|
|
|
|
|
|
- --entrypoints.web.address=:80
|
2020-09-03 11:39:57 +02:00
|
|
|
- --entryPoints.web.forwardedHeaders.insecure
|
2020-05-15 23:34:50 +02:00
|
|
|
labels:
|
|
|
|
traefik.enable: 'true'
|
|
|
|
|
2021-03-09 09:30:20 +01:00
|
|
|
traefik.http.routers.traefik.rule: 'Host(`${TRAEFIK_DOMAIN:?err}`)'
|
2020-05-15 23:34:50 +02:00
|
|
|
traefik.http.routers.traefik.entrypoints: 'web'
|
|
|
|
|
|
|
|
traefik.http.services.traefik.loadbalancer.server.port: '8080'
|