forked from EvolutionAPI/evolution-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
206 lines (194 loc) · 4.63 KB
/
docker-compose.dev.yaml
File metadata and controls
206 lines (194 loc) · 4.63 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
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
services:
evolution_api:
container_name: evolution_api
image: evolution/api:local
build: .
restart: always
ports:
- '8080:8080'
volumes:
- evolution_instances:/evolution/instances
env_file:
- .env
depends_on:
redis:
condition: service_started
expose:
- 8080
evolution_api_1:
container_name: evolution_api_1
image: evolution/api:local
build: .
restart: always
ports:
- '8081:8080'
volumes:
- evolution_instances_1:/evolution/instances
env_file:
- .env.instance1
depends_on:
postgres-whatsapp-api-1:
condition: service_healthy
expose:
- 8080
evolution_api_2:
container_name: evolution_api_2
image: evolution/api:local
build: .
restart: always
ports:
- '8082:8080'
volumes:
- evolution_instances_2:/evolution/instances
env_file:
- .env.instance2
depends_on:
postgres-whatsapp-api-2:
condition: service_healthy
expose:
- 8080
evolution_api_3:
container_name: evolution_api_3
image: evolution/api:local
build: .
restart: always
ports:
- '8083:8080'
volumes:
- evolution_instances_3:/evolution/instances
env_file:
- .env.instance3
depends_on:
postgres-whatsapp-api-3:
condition: service_healthy
expose:
- 8080
evolution_api_4:
container_name: evolution_api_4
image: evolution/api:local
build: .
restart: always
ports:
- '8084:8080'
volumes:
- evolution_instances_4:/evolution/instances
env_file:
- .env.instance4
depends_on:
postgres-whatsapp-api-4:
condition: service_healthy
expose:
- 8080
evolution_api_5:
container_name: evolution_api_5
image: evolution/api:local
build: .
restart: always
ports:
- '8085:8080'
volumes:
- evolution_instances_5:/evolution/instances
env_file:
- .env.instance5
depends_on:
postgres-whatsapp-api-5:
condition: service_healthy
expose:
- 8080
postgres-whatsapp-api-1:
image: postgres:16.8
container_name: postgres-whatsapp-api-1
env_file:
- .env.instance1
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U whatsapp1 -h localhost']
interval: 10s
timeout: 5s
retries: 5
ports:
- '5433:5432'
restart: unless-stopped
volumes:
- postgres-whatsapp-api-data-1:/var/lib/postgresql/data
postgres-whatsapp-api-2:
image: postgres:16.8
container_name: postgres-whatsapp-api-2
env_file:
- .env.instance2
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U whatsapp2 -h localhost']
interval: 10s
timeout: 5s
retries: 5
ports:
- '5434:5432'
restart: unless-stopped
volumes:
- postgres-whatsapp-api-data-2:/var/lib/postgresql/data
postgres-whatsapp-api-3:
image: postgres:16.8
container_name: postgres-whatsapp-api-3
env_file:
- .env.instance3
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U whatsapp3 -h localhost']
interval: 10s
timeout: 5s
retries: 5
ports:
- '5435:5432'
restart: unless-stopped
volumes:
- postgres-whatsapp-api-data-3:/var/lib/postgresql/data
postgres-whatsapp-api-4:
image: postgres:16.8
container_name: postgres-whatsapp-api-4
env_file:
- .env.instance4
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U whatsapp4 -h localhost']
interval: 10s
timeout: 5s
retries: 5
ports:
- '5436:5432'
restart: unless-stopped
volumes:
- postgres-whatsapp-api-data-4:/var/lib/postgresql/data
postgres-whatsapp-api-5:
image: postgres:16.8
container_name: postgres-whatsapp-api-5
env_file:
- .env.instance5
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U whatsapp5 -h localhost']
interval: 10s
timeout: 5s
retries: 5
ports:
- '5437:5432'
restart: unless-stopped
volumes:
- postgres-whatsapp-api-data-5:/var/lib/postgresql/data
redis:
image: redis:7-alpine
container_name: redis_evolution
restart: always
ports:
- '6380:6379'
volumes:
- redis_data:/data
command: redis-server --appendonly yes --maxmemory 512mb --maxmemory-policy allkeys-lru
volumes:
evolution_instances:
evolution_instances_1:
evolution_instances_2:
evolution_instances_3:
evolution_instances_4:
evolution_instances_5:
postgres-whatsapp-api-data-1:
postgres-whatsapp-api-data-2:
postgres-whatsapp-api-data-3:
postgres-whatsapp-api-data-4:
postgres-whatsapp-api-data-5:
redis_data: