first try
This commit is contained in:
@@ -3,8 +3,8 @@ services:
|
||||
build:
|
||||
context: ./benchmark-proxy
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
expose:
|
||||
- "8080"
|
||||
environment:
|
||||
- LISTEN_ADDR=:8080
|
||||
- SUMMARY_INTERVAL=60
|
||||
@@ -12,4 +12,13 @@ services:
|
||||
- SECONDARY_BACKENDS=${BENCHMARK_PROXY_SECONDARY_BACKENDS}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- chains
|
||||
- chains
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.middlewares.benchmark-proxy-stripprefix.stripprefix.prefixes=/benchmark"
|
||||
- "traefik.http.services.benchmark-proxy.loadbalancer.server.port=8080"
|
||||
- "${NO_SSL:-traefik.http.routers.benchmark-proxy.entrypoints=websecure}"
|
||||
- "${NO_SSL:-traefik.http.routers.benchmark-proxy.tls.certresolver=myresolver}"
|
||||
- "${NO_SSL:-traefik.http.routers.benchmark-proxy.rule=Host(`$DOMAIN`) && PathPrefix(`/benchmark`)}"
|
||||
- "${NO_SSL:+traefik.http.routers.benchmark-proxy.rule=PathPrefix(`/benchmark`)}"
|
||||
- "traefik.http.routers.benchmark-proxy.middlewares=benchmark-proxy-stripprefix, ipwhitelist"
|
||||
Reference in New Issue
Block a user