Commit 61e7d14f authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Migra a Traefik v2, renombra variable de auth

parent 3ddbe150
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3,4 +3,7 @@ METRICS_PATH=/metrics
DATA_PATH=/pushgateway
PERSISTENCE_INTERVAL=5m
LOG_LEVEL=info

DATA_VOL_NAME=pushgateway-vol

TRAEFIK_AUTH=user:$apr1$md5password
+6 −4
Original line number Diff line number Diff line
@@ -22,10 +22,12 @@ services:
      update_config:
        delay: ${UPDATE_DELAY:-1m}
      labels:
        traefik.frontend.auth.basic.users: ${UI_AUTH}
        traefik.frontend.rule: Host:${TRAEFIK_SUBDOMAIN:-pushgateway}.${PUBLIC_HOSTNAME}
        traefik.backend: pushgateway
        traefik.port: '${PORT}'
        traefik.enable: ${TRAEFIK_ENABLE:-true}
        traefik.http.routers.pushgateway.entrypoints: ${TRAEFIK_ENTRYPOINT:-http}
        traefik.http.routers.pushgateway.rule: Host(`${TRAEFIK_SUBDOMAIN:-pushgateway}.${PUBLIC_HOSTNAME}`)
        traefik.http.middlewares.pushgateway-auth.basicauth.users: ${TRAEFIK_AUTH}
        traefik.http.routers.pushgateway.middlewares: pushgateway-auth
        traefik.http.services.pushgateway.loadbalancer.server.port: ${PORT}
      resources:
        limits:
          cpus: '${RESOURCES_LIMITS_CPUS:-0.1}'