Jafner.net/homelab/stacks/traefik/docker-compose.yml

29 lines
579 B
YAML
Raw Normal View History

2024-10-22 19:35:09 -07:00
services:
traefik:
image: traefik:latest
container_name: traefik_traefik
restart: "no"
networks:
web:
ipv4_address: 172.20.0.10
monitoring:
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yaml:/traefik.yaml
- ./config:/config
- $APPDATA/acme.json:/acme.json
- $APPDATA/acme-dns01.json:/acme-dns01.json
2024-10-22 19:35:09 -07:00
env_file:
- path: /run/secrets/traefik
2024-10-22 19:35:09 -07:00
required: true
networks:
web:
external: true
monitoring:
external: true