Skip to content

Commit

Permalink
Add restart policy (docker#53)
Browse files Browse the repository at this point in the history
It's almost no possible monitoring solution which it's OK to stop monitoring server itself upon a problem.

Signed-off-by: Amin Vakil <info@aminvakil.com>
  • Loading branch information
aminvakil authored Apr 10, 2020
1 parent d3c5f28 commit 93ff67d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prometheus-grafana/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
restart:
- unless-stopped
volumes:
- ./prometheus:/etc/prometheus
- prom_data:/prometheus
Expand All @@ -15,6 +17,8 @@ services:
container_name: grafana
ports:
- 3000:3000
restart:
- unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana
Expand Down

0 comments on commit 93ff67d

Please sign in to comment.