docker/traefik/docker-compose.yml

23 lines
508 B
YAML

version: "3.8"
services:
traefik:
image: traefik:v2.3.4
restart: always
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ${DATA_PATH}/letsencrypt:/letsencrypt
- ${DATA_PATH}/traefik.toml:/traefik.toml
- ${DATA_PATH}/traefik_dynamic.toml:/traefik_dynamic.toml
container_name: traefik
labels:
- "co.elastic.logs/module=traefik"
- "co.elastic.logs/fileset=access"
networks:
default:
name: proxy