27 lines
947 B
YAML
27 lines
947 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
pushgateway:
|
|
image: prom/pushgateway:v1.10.0
|
|
command:
|
|
- '--web.listen-address=:9191'
|
|
- '--push.disable-consistency-check'
|
|
- '--persistence.interval=5m'
|
|
ports:
|
|
- 9191:9191
|
|
networks:
|
|
- internal
|
|
- proxy
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=proxy"
|
|
- "traefik.http.services.${STACK_NAME}-pushgateway.loadbalancer.server.port=9191"
|
|
- "traefik.http.routers.${STACK_NAME}-pushgateway.rule=Host(`pushgateway.${DOMAIN}`)"
|
|
- "traefik.http.routers.${STACK_NAME}-pushgateway.entrypoints=web-secure"
|
|
- "traefik.http.routers.${STACK_NAME}-pushgateway.tls=true"
|
|
- "traefik.http.routers.${STACK_NAME}-pushgateway.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
- "traefik.http.routers.${STACK_NAME}-pushgateway.middlewares=basicauth@file"
|