-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
72 lines (63 loc) · 1.16 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
65
66
67
68
69
70
71
72
version: "3"
services:
lb:
image: haproxy:2.1
ports:
- "8000:8080"
volumes:
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
client:
build:
context: brave-chat
dockerfile: Dockerfile
restart: always
ports:
- "3000:3000"
volumes:
- ./brave-chat:/brave-chat
depends_on:
- lb
app1:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
app2:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
app3:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
app4:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
prometheus:
image: prom/prometheus:latest
restart: always
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- "--config.file=/etc/prometheus/prometheus.yml"
grafana:
image: grafana/grafana:latest
restart: always
depends_on:
- lb
ports:
- 3001:3000
volumes:
- ./datasource.yml:/etc/grafana/provisioning/datasource.yml
env_file:
- .env