Skip to content

Commit

Permalink
wip: Do not expose anymore prometheus and alertmanager #214
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Nouguier committed Dec 12, 2020
1 parent 48e4f78 commit 194f397
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions deploy/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,16 @@ services:
placement:
constraints:
- node.role == manager
labels:
- "traefik.backend=prometheus"
- "traefik.enable=true"
- "traefik.docker.network=${DOCKER_FRONT_NETWORK}"
- "traefik.port=9090"
- "traefik.frontend.entryPoints=http,https"
- "traefik.frontend.auth.basic=${AUTH_USER}:${AUTH_PASSWORD}"
- "traefik.frontend.rule=Host:prometheus.${SUBDOMAIN}"
- "traefik.frontend.headers.customResponseHeaders=X-XSS-Protection: 1; mode=block"
restart_policy:
condition: on-failure
networks:
- kargo-front-network
networks:
- kargo-back-network

alertmanager:
image: ${PROMETHEUS_ALERTMANAGER_IMAGE}:${PROMETHEUS_ALERTMANAGER_TAG}
command:
- '--config.file=/etc/alertmanager/alertmanager.yml'
- '--storage.path=/alertmanager'
- '--web.external-url=https://alertmanager.${SUBDOMAIN}'
healthcheck:
test: ["CMD", "wget", "-q", "--tries=1", "--spider", "http://localhost:9093/metrics"]
interval: 30s
Expand Down

0 comments on commit 194f397

Please sign in to comment.