update traefik

This commit is contained in:
Sebastian
2023-08-24 06:42:59 +02:00
parent ffc37ede08
commit e9a33706cf

View File

@@ -28,6 +28,19 @@ services:
- "/bin/sh" - "/bin/sh"
- "-c" - "-c"
- "/app/zkevm-node run --network ${ZKEVM_NETWORK} --cfg /app/config.toml --components rpc" - "/app/zkevm-node run --network ${ZKEVM_NETWORK} --cfg /app/config.toml --components rpc"
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.zkevm-stripprefix.stripprefix.prefixes=/zkevm"
- "traefik.http.services.zkevm.loadbalancer.server.port=8545"
- "traefik.http.routers.zkevm.entrypoints=websecure"
- "traefik.http.routers.zkevm.tls.certresolver=myresolver"
- "traefik.http.routers.zkevm.rule=Host(`$DOMAIN`) && PathPrefix(`/zkevm`)"
- "traefik.http.routers.zkevm.middlewares=zkevm-stripprefix, ipwhitelist"
#- "prometheus-scrape.enabled=true"
#- "prometheus-scrape.port=6060"
#- "prometheus-scrape.job_name=zkevm"
#- "prometheus-scrape.metrics_path=/debug/metrics/prometheus"
zkevm-sync: zkevm-sync:
restart: unless-stopped restart: unless-stopped