infrastructure/ansible/roles/traefik/files/docker-compose.yml

14 lines
321 B
YAML
Raw Normal View History

2020-03-08 18:12:12 +00:00
version: "2.3"
2020-02-02 21:10:29 +00:00
services:
traefik:
2021-01-20 20:33:57 +00:00
image: traefik:v2.4
2020-02-02 21:10:29 +00:00
network_mode: host
environment:
- CF_DNS_API_TOKEN={{ cloudflare_api_token }}
2020-02-02 21:10:29 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /tmp/traefik-logs:/var/log/traefik
2020-02-02 21:10:29 +00:00
- ./traefik:/etc/traefik
restart: unless-stopped