infrastructure/ansible/roles/traefik/files/docker-compose.yml
2020-09-10 20:16:23 +01:00

28 lines
747 B
YAML

version: "2.3"
services:
traefik:
image: traefik:v2.2.11
network_mode: host
environment:
- CF_DNS_API_TOKEN={{ cloudflare_api_token }}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik:/etc/traefik
restart: unless-stopped
depends_on:
- influxdb
influxdb:
image: influxdb:1.8-alpine
restart: unless-stopped
volumes:
- "{{ traefik_influx_db_dir }}:/var/lib/influxdb"
ports:
- "{{ wireguard.clients[ansible_fqdn].ip }}:38089:8089/udp"
- "{{ wireguard.clients[ansible_fqdn].ip }}:38086:8086"
environment:
- INFLUXDB_DB=traefik
- INFLUXDB_HTTP_AUTH_ENABLED=
- INFLUXDB_UDP_ENABLED=true
- INFLUXDB_UDP_DATABASE=traefik