move the ip whitelist to the traefik container

This commit is contained in:
czarly
2022-03-15 14:35:57 +04:00
parent 165a7426d1
commit 5c06b75b12
14 changed files with 6 additions and 18 deletions

View File

@@ -31,11 +31,12 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- chains
#labels:
# - "traefik.enable=true"
# - "prometheus-scrape.enabled=true"
# - "prometheus-scrape.port=8082"
# - "prometheus-scrape.job_name=traefik"
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.ipwhitelist.ipwhitelist.sourcerange=$WHITELIST"
- "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=8082"
- "prometheus-scrape.job_name=traefik"
networks: