-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
180 lines (167 loc) · 5.86 KB
/
compose.yaml
File metadata and controls
180 lines (167 loc) · 5.86 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
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
services:
server:
image: ayenisholah/bidding-bot-server:latest
restart: always
ports:
- "3003:3003"
env_file:
- ./server/.env
environment:
PORT: 3003
REDIS_NET_MAP: '{"redis-node-1:6379":{"host":"127.0.0.1","port":8001},"redis-node-2:6379":{"host":"127.0.0.1","port":8002},"redis-node-3:6379":{"host":"127.0.0.1","port":8003},"redis-node-4:6379":{"host":"127.0.0.1","port":8004},"redis-node-5:6379":{"host":"127.0.0.1","port":8005},"redis-node-6:6379":{"host":"127.0.0.1","port":8006},"redis-node-7:6379":{"host":"127.0.0.1","port":8007},"redis-node-8:6379":{"host":"127.0.0.1","port":8008},"redis-node-9:6379":{"host":"127.0.0.1","port":8009}}'
REDIS_NODES: '[{"host":"127.0.0.1","port":8001},{"host":"127.0.0.1","port":8002},{"host":"127.0.0.1","port":8003},{"host":"127.0.0.1","port":8004},{"host":"127.0.0.1","port":8005},{"host":"127.0.0.1","port":8006},{"host":"127.0.0.1","port":8007},{"host":"127.0.0.1","port":8008},{"host":"127.0.0.1","port":8009}]'
ALCHEMY_API_KEY: "Rt6ZtAeAJ0TzeLr85vIsnz1nqiGlktdd"
MONGODB_URI: "mongodb://localhost:27017/BIDDING_BOT"
develop:
watch:
- action: sync
path: ./server/src
target: /app/src
ignore:
- node_modules/
- action: rebuild
path: package.json
depends_on:
- mongodb
- redis
networks:
- my_network
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:3003/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
client:
image: ayenisholah/bidding-bot-client:latest
restart: always
ports:
- "3001:3001"
env_file:
- ./client/.env.local
environment:
PORT: 3001
REDIS_NET_MAP: '{"redis-node-1:6379":{"host":"127.0.0.1","port":8001},"redis-node-2:6379":{"host":"127.0.0.1","port":8002},"redis-node-3:6379":{"host":"127.0.0.1","port":8003},"redis-node-4:6379":{"host":"127.0.0.1","port":8004},"redis-node-5:6379":{"host":"127.0.0.1","port":8005},"redis-node-6:6379":{"host":"127.0.0.1","port":8006},"redis-node-7:6379":{"host":"127.0.0.1","port":8007},"redis-node-8:6379":{"host":"127.0.0.1","port":8008},"redis-node-9:6379":{"host":"127.0.0.1","port":8009}}'
REDIS_NODES: '[{"host":"127.0.0.1","port":8001},{"host":"127.0.0.1","port":8002},{"host":"127.0.0.1","port":8003},{"host":"127.0.0.1","port":8004},{"host":"127.0.0.1","port":8005},{"host":"127.0.0.1","port":8006},{"host":"127.0.0.1","port":8007},{"host":"127.0.0.1","port":8008},{"host":"127.0.0.1","port":8009}]'
ALCHEMY_API_KEY: "Rt6ZtAeAJ0TzeLr85vIsnz1nqiGlktdd"
CLIENT_URL: "http://localhost:3001/"
NEXT_PUBLIC_CLIENT_URL: "http://localhost:3001/"
NEXT_PUBLIC_SERVER_WEBSOCKET: "ws://localhost:3003"
MONGODB_URI: "mongodb://localhost:27017/BIDDING_BOT"
develop:
watch:
- action: sync
path: ./client/src
target: /app/src
ignore:
- node_modules/
- action: rebuild
path: package.json
depends_on:
- mongodb
- server
- redis
networks:
- my_network
mongodb:
image: mongo:latest
restart: unless-stopped
volumes:
- mongodb_data:/data/db
networks:
- my_network
redis-node-1:
image: redis:latest
command: redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000
ports:
- "8001:6379"
volumes:
- redis_node_1_data:/data
networks:
- my_network
redis-node-2:
image: redis:latest
command: redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000
ports:
- "8002:6379"
volumes:
- redis_node_2_data:/data
networks:
- my_network
redis-node-3:
image: redis:latest
command: redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000
ports:
- "8003:6379"
volumes:
- redis_node_3_data:/data
networks:
- my_network
redis-node-4:
image: redis:latest
command: redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000
ports:
- "8004:6379"
volumes:
- redis_node_4_data:/data
networks:
- my_network
redis-node-5:
image: redis:latest
command: redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000
ports:
- "8005:6379"
volumes:
- redis_node_5_data:/data
networks:
- my_network
redis-node-6:
image: redis:latest
command: redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000
ports:
- "8006:6379"
volumes:
- redis_node_6_data:/data
networks:
- my_network
redis-node-7:
image: redis:latest
command: redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000
ports:
- "8007:6379"
volumes:
- redis_node_7_data:/data
networks:
- my_network
redis-node-8:
image: redis:latest
command: redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000
ports:
- "8008:6379"
volumes:
- redis_node_8_data:/data
networks:
- my_network
redis-node-9:
image: redis:latest
command: redis-server --port 6379 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000
ports:
- "8009:6379"
volumes:
- redis_node_9_data:/data
networks:
- my_network
volumes:
mongodb_data:
redis_node_1_data:
redis_node_2_data:
redis_node_3_data:
redis_node_4_data:
redis_node_5_data:
redis_node_6_data:
redis_node_7_data:
redis_node_8_data:
redis_node_9_data:
networks:
my_network:
driver: bridge