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:
|
||||
- "{{ traefik_influx_db_dir }}:/var/lib/influxdb"
|
||||
ports:
|
||||
- "{{ wireguard.clients[ansible_fqdn].ip }}:38089:8089/udp"
|
||||
- "{{ wireguard.clients[ansible_fqdn].ip }}:38086:8086"
|
||||
- "{{ traefik_private_ip }}:38089:8089/udp"
|
||||
- "{{ traefik_private_ip }}:38086:8086"
|
||||
environment:
|
||||
- INFLUXDB_DB=traefik
|
||||
- INFLUXDB_HTTP_AUTH_ENABLED=
|
||||
|
|
|
@ -15,7 +15,7 @@ entryPoints:
|
|||
trustedIPs:
|
||||
- "{{ wireguard.cidr }}"
|
||||
traefik:
|
||||
address: "{{ wireguard.clients[ansible_fqdn].ip }}:8080"
|
||||
address: "{{ traefik_private_ip }}:8080"
|
||||
|
||||
ping: {}
|
||||
|
||||
|
@ -48,7 +48,7 @@ serversTransport:
|
|||
|
||||
metrics:
|
||||
influxDB:
|
||||
address: "{{ wireguard.clients[ansible_fqdn].ip }}:38089"
|
||||
address: "{{ traefik_private_ip }}:38089"
|
||||
database: traefik
|
||||
pushInterval: 30s
|
||||
|
||||
|
|
Loading…
Reference in a new issue