-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (31 loc) · 924 Bytes
/
docker-compose.yml
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
version: "3.9"
services:
# database
timescaledb:
build: ./database
image: timescale/timescaledb:2.2.0-pg13
container_name: timescaledb
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
# grafana
grafana:
build: ./dashboard
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
links:
- timescaledb
volumes:
- ./grafana/dashboard:/etc/extra-config/grafana
- ./dashboard/grafana.ini:/etc/grafana/grafana.ini
- ./dashboard/postgres.yml:/etc/grafana/provisioning/datasources/postgres.yml
- ./dashboard/main.json:/var/lib/grafana/dashboards/main.json
- ./dashboard/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml
command: ./etc/extra-config/grafana/post.sh