Allow traefik to run on non-wireguard host
This commit is contained in:
parent
4f1e54baab
commit
bdfd38c9fe
3 changed files with 5 additions and 4 deletions
1
ansible/roles/traefik/defaults/main.yml
Normal file
1
ansible/roles/traefik/defaults/main.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
traefik_private_ip: "{{ wireguard.clients[ansible_fqdn].ip }}"
|
|
@ -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=
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue