-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: pev-postgres
environment:
POSTGRES_DB: testdb
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpass
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./tests/postgres-init:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U testuser -d testdb"]
interval: 5s
timeout: 5s
retries: 5
grafana:
image: grafana/grafana:10.4.0
container_name: pev-grafana
ports:
- "3000:3000"
environment:
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=cybertec-pev-panel
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=false
- GF_LOG_LEVEL=debug
volumes:
- ./dist:/var/lib/grafana/plugins/cybertec-pev-panel
- ./provisioning:/etc/grafana/provisioning
- grafana-data:/var/lib/grafana
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/api/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres-data:
grafana-data: