forked from BenediktGeiger/sonad-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (61 loc) · 1.43 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
56
57
58
59
60
61
62
63
64
version: "3.8"
services:
redis:
image: redis:latest
container_name: client
restart: unless-stopped
expose:
- 6379
sonad-api:
container_name: sonad-api
env_file:
- .env
build:
context: .
dockerfile: ./Dockerfile
ports:
- 8083:8083
restart: "on-failure"
postgres:
container_name: postgres_sonapi
image: postgres:latest
environment:
POSTGRES_USER: benedikt
POSTGRES_PASSWORD: password
PGDATA: /data/postgres
volumes:
- postgres-db:/data/postgres
ports:
- "5432:5432"
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: "always"
env_file:
- .env
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: "always"
ports:
- 3000:3000
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/data:/var/lib/grafana
user: "1000"
depends_on:
- prometheus
volumes:
postgres-db:
driver: local