Jafner.net/homelab/fighter/config/traefik/docker-compose.yml

29 lines
656 B
YAML

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
- $DOCKER_DATA/acme.json:/acme.json
- $DOCKER_DATA/acme-dns01.json:/acme-dns01.json
environment:
- CLOUDFLARE_DNS_API_TOKEN=${traefik_CF_DNS_API_TOKEN}
- CLOUDFLARE_ZONE_API_TOKEN=${traefik_CF_ZONE_API_TOKEN}
networks:
web:
external: true
monitoring:
external: true