28 lines
712 B
YAML
28 lines
712 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:
|
|
- "{{ traefik_private_ip }}:38089:8089/udp"
|
|
- "{{ traefik_private_ip }}:38086:8086"
|
|
environment:
|
|
- INFLUXDB_DB=traefik
|
|
- INFLUXDB_HTTP_AUTH_ENABLED=
|
|
- INFLUXDB_UDP_ENABLED=true
|
|
- INFLUXDB_UDP_DATABASE=traefik
|