docker/traefik/docker-compose.yml

27 lines
539 B
YAML
Raw Normal View History

2021-05-09 22:07:17 +02:00
version: "3.8"
services:
traefik:
2023-02-02 12:50:01 +01:00
image: traefik:v2.9.6
2021-05-09 22:07:17 +02:00
restart: always
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ${DATA_PATH}/letsencrypt:/letsencrypt
2023-02-06 10:53:58 +01:00
- ${DATA_PATH}/config/:/etc/traefik
2021-05-09 22:07:17 +02:00
container_name: traefik
2024-02-13 13:05:48 +01:00
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "3"
2021-05-09 22:07:17 +02:00
labels:
- "co.elastic.logs/module=traefik"
- "co.elastic.logs/fileset=access"
networks:
default:
name: proxy