Allow traefik to run on non-wireguard host

This commit is contained in:
Jake Howard 2020-12-28 15:55:45 +00:00
parent 4f1e54baab
commit bdfd38c9fe
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 5 additions and 4 deletions

View file

@ -0,0 +1 @@
traefik_private_ip: "{{ wireguard.clients[ansible_fqdn].ip }}"

View file

@ -19,8 +19,8 @@ services:
volumes: volumes:
- "{{ traefik_influx_db_dir }}:/var/lib/influxdb" - "{{ traefik_influx_db_dir }}:/var/lib/influxdb"
ports: ports:
- "{{ wireguard.clients[ansible_fqdn].ip }}:38089:8089/udp" - "{{ traefik_private_ip }}:38089:8089/udp"
- "{{ wireguard.clients[ansible_fqdn].ip }}:38086:8086" - "{{ traefik_private_ip }}:38086:8086"
environment: environment:
- INFLUXDB_DB=traefik - INFLUXDB_DB=traefik
- INFLUXDB_HTTP_AUTH_ENABLED= - INFLUXDB_HTTP_AUTH_ENABLED=

View file

@ -15,7 +15,7 @@ entryPoints:
trustedIPs: trustedIPs:
- "{{ wireguard.cidr }}" - "{{ wireguard.cidr }}"
traefik: traefik:
address: "{{ wireguard.clients[ansible_fqdn].ip }}:8080" address: "{{ traefik_private_ip }}:8080"
ping: {} ping: {}
@ -48,7 +48,7 @@ serversTransport:
metrics: metrics:
influxDB: influxDB:
address: "{{ wireguard.clients[ansible_fqdn].ip }}:38089" address: "{{ traefik_private_ip }}:38089"
database: traefik database: traefik
pushInterval: 30s pushInterval: 30s