27 lines
539 B
YAML
27 lines
539 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
traefik:
|
|
image: traefik:v2.9.6
|
|
restart: always
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- ${DATA_PATH}/letsencrypt:/letsencrypt
|
|
- ${DATA_PATH}/config/:/etc/traefik
|
|
container_name: traefik
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "200k"
|
|
max-file: "3"
|
|
labels:
|
|
- "co.elastic.logs/module=traefik"
|
|
- "co.elastic.logs/fileset=access"
|
|
|
|
networks:
|
|
default:
|
|
name: proxy
|