grafana: auto setup of dashboard

This commit is contained in:
GitBluub
2023-09-20 00:26:15 +02:00
parent 57d646f6eb
commit 162fc9148f
7 changed files with 40 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ networks:
volumes:
db:
scoro_logs:
services:
@@ -24,6 +25,7 @@ services:
- "6543:6543"
volumes:
- ./assets:/assets
- scoro_logs:/logs
db:
container_name: db
image: postgres:alpine3.14
@@ -165,6 +167,9 @@ services:
/run.sh
ports:
- "3001:3000"
volumes:
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml
- ./grafana/dashboards:/var/lib/grafana/dashboards
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3001/api/health || exit 1" ]
interval: 10s