-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (53 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
57 lines (53 loc) · 1.48 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
49
50
51
52
53
54
55
56
57
version: '3.2'
services:
module-a:
image: module-a:latest
depends_on:
- module-b
build:
context: module-a
dockerfile: ./Dockerfile
ports:
- "8080:8080"
module-b:
image: module-b:latest
depends_on:
- db
build:
context: module-b
dockerfile: ./Dockerfile
ports:
- "8083:8083"
db:
image: postgres:latest
restart: always
volumes:
- ./module-b/src/test/resources/schema.sql:/docker-entrypoint-initdb.d/1-schema.sql
- ./module-b/src/test/resources/data.sql:/docker-entrypoint-initdb.d/2-data.sql
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=P0stgr3sql
ports:
- "5432:5432"
grafana:
image: grafana/grafana:8.1.5
restart: always
depends_on:
- prometheus
ports:
- "3000:3000"
volumes:
- ./grafana/provisioning/datasources/:/etc/grafana/provisioning/datasources/
- ./grafana/provisioning/dashboards/:/etc/grafana/provisioning/dashboards/
- ./grafana/data/:/var/lib/grafana/dashboards/
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=changeme
- GF_USERS_ALLOW_SIGN_UP=false
prometheus:
image: prom/prometheus:v2.30.0
restart: always
ports:
- "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml