2020-03-08 18:12:12 +00:00
|
|
|
version: "2.3"
|
2020-02-02 21:10:29 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
traefik:
|
2020-10-02 09:20:33 +01:00
|
|
|
image: traefik:v2.3.1
|
2020-02-02 21:10:29 +00:00
|
|
|
network_mode: host
|
2020-09-05 18:27:04 +01:00
|
|
|
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
|
|
|
|
- ./traefik:/etc/traefik
|
|
|
|
restart: unless-stopped
|
2020-08-30 15:58:03 +01:00
|
|
|
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
|