towards healthchecks for all containers
This commit is contained in:
@@ -22,6 +22,11 @@ services:
|
||||
- /opt/teslamate/import:/opt/app/import
|
||||
cap_drop:
|
||||
- all
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:4000"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
teslamate-grafana:
|
||||
image: teslamate/grafana:2.1.0
|
||||
@@ -43,3 +48,8 @@ services:
|
||||
- /opt/teslamate/grafana:/var/lib/grafana
|
||||
- /opt/teslamate/achievements/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml
|
||||
- /opt/teslamate/achievements/dashboards:/TeslaMateAchievements
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user