-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (49 loc) · 1.02 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.7'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
networks:
- back-tier
restart: always
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: example
ports:
- "5432:5432"
networks:
- back-tier
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
networks:
- back-tier
- front-tier
grafana:
image: grafana/grafana
user: "472"
environment:
GF_DATABASE_USER: postgres
GF_DATABASE_PASSWORD: example
GF_DATABASE_NAME: test
ports:
- "3000:3000"
volumes:
- ./config/grafana_datasources.yaml:/etc/grafana/provisioning/datasources/datasource.yaml:ro
- ./config/grafana_dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- ./dashboards:/opt/grafana/dashboards
networks:
- back-tier
- front-tier
networks:
front-tier:
back-tier:
volumes:
grafana_data: {}