forked from coop-cloud/monitoring-ng
closes #20 --------- Co-authored-by: Danny Groenewegen <danny@ecommons.space> Reviewed-on: coop-cloud/monitoring-ng#21 Reviewed-by: ammaratef45 <ammaratef45@proton.me> Reviewed-by: Danny Groenewegen <247+dannygroenewegen@noreply.git.coopcloud.tech> Co-authored-by: f <f@sutty.nl>
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
pushgateway:
|
|
image: prom/pushgateway:v1.11.2
|
|
command:
|
|
- '--web.listen-address=:9191'
|
|
- '--push.disable-consistency-check'
|
|
- '--persistence.interval=5m'
|
|
ports:
|
|
- 9191:9191
|
|
networks:
|
|
- internal
|
|
- proxy
|
|
healthcheck:
|
|
test: "wget -q --spider http://localhost:9191/-/healthy || exit 1"
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.swarm.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"
|