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

29 lines
712 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
- ./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:
- "{{ traefik_private_ip }}:38089:8089/udp"
- "{{ traefik_private_ip }}:38086:8086"
2020-08-30 15:58:03 +01:00
environment:
- INFLUXDB_DB=traefik
- INFLUXDB_HTTP_AUTH_ENABLED=
- INFLUXDB_UDP_ENABLED=true
- INFLUXDB_UDP_DATABASE=traefik