-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
220 lines (213 loc) · 7.07 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
version: '3.9'
services:
rev-proxy:
build: ./rev-proxy
ports:
- "8080:80"
frontend:
build: ./tlr-ui
environment:
- PORT=3000
ports:
- "3000:3000"
volumes:
- ./tlr-ui/:/app
- /app/node_modules
api:
build: ./products_service
environment:
- PORT=8000
- NODE_ENV=development
- NODE_APP_INSTANCE=los-angeles
ports:
- "8000:8000"
volumes:
- ./products_service/:/app
- /app/node_modules
# - type: bind
# source: /Users/bhoyer/certs
# target: /app
api-washington-dc:
build: ./products_service
environment:
- PORT=8000
- NODE_ENV=development
- NODE_APP_INSTANCE=washington-dc
ports:
- "8001:8000"
volumes:
- ./products_service/:/app
- /app/node_modules
# - type: bind
# source: /Users/bhoyer/certs
# target: /app
api-sao-paulo:
build: ./products_service
environment:
- PORT=8000
- NODE_ENV=development
- NODE_APP_INSTANCE=sao-paulo
ports:
- "8002:8000"
volumes:
- ./products_service/:/app
- /app/node_modules
# - type: bind
# source: /Users/bhoyer/certs
# target: /app
api-mumbai:
build: ./products_service
environment:
- PORT=8000
- NODE_ENV=development
- NODE_APP_INSTANCE=mumbai
ports:
- "8003:8000"
volumes:
- ./products_service/:/app
- /app/node_modules
# - type: bind
# source: /Users/bhoyer/certs
# target: /app
api-london:
build: ./products_service
environment:
- PORT=8000
- NODE_ENV=development
- NODE_APP_INSTANCE=london
ports:
- "8004:8000"
volumes:
- ./products_service/:/app
- /app/node_modules
# - type: bind
# source: /Users/bhoyer/certs
# target: /app
api-sydney:
build: ./products_service
environment:
- PORT=8000
- NODE_ENV=development
- NODE_APP_INSTANCE=sydney
ports:
- "8005:8000"
volumes:
- ./products_service/:/app
- /app/node_modules
# - type: bind
# source: /Users/bhoyer/certs
# target: /app
yb-master-0:
image: yugabytedb/yugabyte:2.15.3.0-b231
container_name: yb-master-0
hostname: yb-master-0
command: bash -c "
rm -rf /tmp/.yb* ;
/home/yugabyte/bin/yb-master --ysql_beta_feature_tablespace_alteration=true --ysql_enable_packed_row=true --ysql_beta_features=true --yb_enable_read_committed_isolation=true --default_memory_limit_to_ram_ratio=0.20
--fs_data_dirs=/home/yugabyte/data
--rpc_bind_addresses=yb-master-0:7100
--master_addresses=yb-master-0:7100,yb-master-1:7100,yb-master-2:7100
--replication_factor=3
--rpc_connection_timeout_ms=15000
"
ports:
- "7001:7000"
yb-tserver-0:
image: yugabytedb/yugabyte:2.15.3.0-b231
container_name: yb-tserver-0
hostname: yb-tserver-0
volumes:
- ./products_service/:/app
command: bash -c "
rm -rf /tmp/.yb* ;
/home/yugabyte/bin/yb-tserver --ysql_beta_feature_tablespace_alteration=true --ysql_enable_packed_row=true --ysql_beta_features=true --yb_enable_read_committed_isolation=true --default_memory_limit_to_ram_ratio=0.20
--placement_cloud=cloud
--placement_region=region
--placement_zone=zone
--enable_ysql=true
--fs_data_dirs=/home/yugabyte/data
--rpc_bind_addresses=yb-tserver-0:9100
--tserver_master_addrs=yb-master-0:7100,yb-master-1:7100,yb-master-2:7100
--ysql_num_shards_per_tserver=2
--rpc_connection_timeout_ms=15000
"
ports:
- "9000:9000"
- "5433:5433"
depends_on:
- yb-master-2
yb-master-1:
image: yugabytedb/yugabyte:2.15.3.0-b231
container_name: yb-master-1
hostname: yb-master-1
command: bash -c "
rm -rf /tmp/.yb* ;
/home/yugabyte/bin/yb-master --ysql_beta_feature_tablespace_alteration=true --ysql_enable_packed_row=true --ysql_beta_features=true --yb_enable_read_committed_isolation=true --default_memory_limit_to_ram_ratio=0.20
--fs_data_dirs=/home/yugabyte/data
--rpc_bind_addresses=yb-master-1:7100
--master_addresses=yb-master-0:7100,yb-master-1:7100,yb-master-2:7100
--replication_factor=3
--rpc_connection_timeout_ms=15000
"
ports:
- "7002:7000"
depends_on:
- yb-master-0
yb-tserver-1:
image: yugabytedb/yugabyte:2.15.3.0-b231
container_name: yb-tserver-1
hostname: yb-tserver-1
command: bash -c "
rm -rf /tmp/.yb* ;
/home/yugabyte/bin/yb-tserver --ysql_beta_feature_tablespace_alteration=true --ysql_enable_packed_row=true --ysql_beta_features=true --yb_enable_read_committed_isolation=true --default_memory_limit_to_ram_ratio=0.20
--placement_cloud=cloud
--placement_region=region
--placement_zone=zone
--enable_ysql=true
--fs_data_dirs=/home/yugabyte/data
--rpc_bind_addresses=yb-tserver-1:9100
--tserver_master_addrs=yb-master-0:7100,yb-master-1:7100,yb-master-2:7100
--ysql_num_shards_per_tserver=2
--rpc_connection_timeout_ms=15000
"
ports:
- "9001:9000"
- "5434:5433"
depends_on:
- yb-master-2
yb-master-2:
image: yugabytedb/yugabyte:2.15.3.0-b231
container_name: yb-master-2
hostname: yb-master-2
command: bash -c "
rm -rf /tmp/.yb* ;
/home/yugabyte/bin/yb-master --ysql_beta_feature_tablespace_alteration=true --ysql_enable_packed_row=true --ysql_beta_features=true --yb_enable_read_committed_isolation=true --default_memory_limit_to_ram_ratio=0.20
--fs_data_dirs=/home/yugabyte/data
--rpc_bind_addresses=yb-master-2:7100
--master_addresses=yb-master-0:7100,yb-master-1:7100,yb-master-2:7100
--replication_factor=3
--rpc_connection_timeout_ms=15000
"
ports:
- "7003:7000"
depends_on:
- yb-master-1
yb-tserver-2:
image: yugabytedb/yugabyte:2.15.3.0-b231
container_name: yb-tserver-2
hostname: yb-tserver-2
command: bash -c "
rm -rf /tmp/.yb* ;
/home/yugabyte/bin/yb-tserver --ysql_beta_feature_tablespace_alteration=true --ysql_enable_packed_row=true --ysql_beta_features=true --yb_enable_read_committed_isolation=true --default_memory_limit_to_ram_ratio=0.20
--enable_ysql=true
--fs_data_dirs=/home/yugabyte/data
--rpc_bind_addresses=yb-tserver-2:9100
--tserver_master_addrs=yb-master-0:7100,yb-master-1:7100,yb-master-2:7100
--ysql_num_shards_per_tserver=2
--rpc_connection_timeout_ms=15000
"
ports:
- "9002:9000"
- "5435:5433"
depends_on:
- yb-master-2