-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
76 lines (67 loc) · 1.29 KB
/
docker-compose.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.8'
services:
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- webapp0
- webapp1
- webapp2
webapp0:
build:
context: .
dockerfile: Dockerfile
environment:
- ENV=container
depends_on:
- prometheus
- grafana
- postgres
webapp1:
build:
context: .
dockerfile: Dockerfile
environment:
- ENV=container
depends_on:
- prometheus
- grafana
- postgres
webapp2:
build:
context: .
dockerfile: Dockerfile
environment:
- ENV=container
depends_on:
- prometheus
- grafana
- postgres
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana
ports:
- "3000:3000"
postgres:
image: postgres:14
container_name: feature_flag_postgres
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: mydb
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
volumes:
postgres_data:
driver: local