32 lines
653 B
YAML
32 lines
653 B
YAML
version: "3"
|
|
|
|
services:
|
|
traefik:
|
|
image: traefik:latest
|
|
container_name: traefik_traefik
|
|
logging:
|
|
driver: loki
|
|
options:
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
loki-batch-size: "50"
|
|
loki-retries: "1"
|
|
loki-timeout: "2s"
|
|
keep-file: "true"
|
|
restart: "no"
|
|
networks:
|
|
- web
|
|
- monitoring
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- ./traefik.yaml:/traefik.yaml
|
|
- ./config:/config
|
|
- $DOCKER_DATA/acme.json:/acme.json
|
|
|
|
networks:
|
|
web:
|
|
external: true
|
|
monitoring:
|
|
external: true |