infrastructure/ansible/roles/traefik/files/docker-compose.yml
Jake Howard 0f9802a46c
Install duplicati on PVE docker machine
Requires some changes to how private IPs are specified, which I really need to clean up at some point!
2021-01-20 21:38:01 +00:00

28 lines
696 B
YAML

version: "2.3"
services:
traefik:
image: traefik:v2.4
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:
- "{{ private_ip }}:38089:8089/udp"
- "{{ private_ip }}:38086:8086"
environment:
- INFLUXDB_DB=traefik
- INFLUXDB_HTTP_AUTH_ENABLED=
- INFLUXDB_UDP_ENABLED=true
- INFLUXDB_UDP_DATABASE=traefik