forked from rudderlabs/rudder-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-multi.yml
106 lines (94 loc) · 1.92 KB
/
docker-compose-multi.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: "3.7"
services:
db1:
image: postgres:11-alpine
env_file:
- build/docker.env
ports:
- "6432:5432"
backend1:
depends_on:
- db1
- d-transformer
build:
context: ./
dockerfile: build/Dockerfile-dev
ports:
- "8081:8080"
env_file:
- build/docker.env
environment:
- JOBS_DB_HOST=db1
- INSTANCE_ID=1
db2:
image: postgres:11-alpine
env_file:
- build/docker.env
ports:
- "7432:5432"
backend2:
depends_on:
- db2
- d-transformer
build:
context: ./
dockerfile: build/Dockerfile-dev
ports:
- "8082:8080"
env_file:
- build/docker.env
environment:
- JOBS_DB_HOST=db2
- INSTANCE_ID=2
d-transformer1:
build:
context: ./rudder-transformer/
dockerfile: Dockerfile
ports:
- "9091:9090"
d-transformer2:
build:
context: ./rudder-transformer/
dockerfile: Dockerfile
ports:
- "9092:9090"
d-transformer3:
build:
context: ./rudder-transformer/
dockerfile: Dockerfile
ports:
- "9093:9090"
d-transformer:
image: nginx
depends_on:
- d-transformer1
- d-transformer2
- d-transformer3
environment:
- NGINX_PORT=9090
volumes:
- ./build/nginx.transformer.conf:/etc/nginx/nginx.conf:ro
ports:
- "9090:9090"
lb:
image: nginx
depends_on:
- backend1
- backend2
environment:
- NGINX_PORT=8080
volumes:
- ./build/nginx.backend.conf:/etc/nginx/nginx.conf:ro
ports:
- "8080:8080"
dependencies:
image: dadarek/wait-for-dependencies
depends_on:
- backend1
- backend2
- db1
- db2
- d-transformer1
- d-transformer2
- d-transformer3
command: db1:5432 db2:5432 backend1:8080 backend2:8080 d-transformer1:9090 d-transformer2:9090 d-transformer3:9090