forked from WhatsApp/WhatsApp-Business-API-Setup-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmulticonnect-compose.yml
142 lines (138 loc) · 4.91 KB
/
multiconnect-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
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
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
version: '3'
volumes:
mysqlData:
driver: local
whatsappMedia:
driver: local
services:
db:
image: mysql:5.7.22
restart: always
environment:
MYSQL_ROOT_PASSWORD: testpass
MYSQL_USER: testuser
MYSQL_PASSWORD: testpass
expose:
- "33060"
ports:
- "33060:3306"
volumes:
- mysqlData:/var/lib/mysql
waweb:
image: docker.whatsapp.biz/web:v${WA_API_VERSION:?Run docker-compose with env var WA_API_VERSION (ex. WA_API_VERSION=2.29.2 docker-compose <command> <options>)}
command: ["/opt/whatsapp/bin/wait_on_mysql.sh", "/opt/whatsapp/bin/launch_within_docker.sh"]
ports:
- "9090:443"
volumes:
- whatsappMedia:/usr/local/wamedia
env_file:
- db.env
environment:
WA_APP_MULTICONNECT: 1
WEBAPP_EXTERNAL_PORTS: "9090"
WEBAPP_HOSTNAME: "waweb"
# This is the version of the docker templates being used to run WhatsApp Business API
WA_RUNNING_ENV_VERSION: v2.2.3
ORCHESTRATION: DOCKER-COMPOSE
depends_on:
- "db"
master1:
image: docker.whatsapp.biz/coreapp:v${WA_API_VERSION:?Run docker-compose with env var WA_API_VERSION (ex. WA_API_VERSION=2.29.2 docker-compose <command> <options>)}
restart: unless-stopped
command: ["/opt/whatsapp/bin/wait_on_mysql.sh", "/opt/whatsapp/bin/launch_within_docker.sh"]
ports:
- "6250-6253"
volumes:
- whatsappMedia:/usr/local/wamedia
env_file:
- db.env
environment:
WA_APP_MULTICONNECT: 1
WA_MASTER_NODE: 1
COREAPP_EXTERNAL_PORTS: "6250,6251,6252,6253"
COREAPP_HOSTNAME: "master1"
# This is the version of the docker templates being used to run WhatsApp Business API
WA_RUNNING_ENV_VERSION: v2.2.3
ORCHESTRATION: DOCKER-COMPOSE
depends_on:
- "waweb"
master2:
image: docker.whatsapp.biz/coreapp:v${WA_API_VERSION:?Run docker-compose with env var WA_API_VERSION (ex. WA_API_VERSION=2.29.2 docker-compose <command> <options>)}
restart: unless-stopped
command: ["/opt/whatsapp/bin/wait_on_mysql.sh", "/opt/whatsapp/bin/launch_within_docker.sh"]
ports:
- "6250-6253"
volumes:
- whatsappMedia:/usr/local/wamedia
env_file:
- db.env
environment:
WA_APP_MULTICONNECT: 1
WA_MASTER_NODE: 1
COREAPP_EXTERNAL_PORTS: "6250,6251,6252,6253"
COREAPP_HOSTNAME: "master2"
# This is the version of the docker templates being used to run WhatsApp Business API
WA_RUNNING_ENV_VERSION: v2.2.3
ORCHESTRATION: DOCKER-COMPOSE
depends_on:
- "waweb"
wacore1:
image: docker.whatsapp.biz/coreapp:v${WA_API_VERSION:?Run docker-compose with env var WA_API_VERSION (ex. WA_API_VERSION=2.29.2 docker-compose <command> <options>)}
restart: unless-stopped
command: ["/opt/whatsapp/bin/wait_on_mysql.sh", "/opt/whatsapp/bin/launch_within_docker.sh"]
ports:
- "6250-6253"
volumes:
- whatsappMedia:/usr/local/wamedia
env_file:
- db.env
environment:
WA_APP_MULTICONNECT: 1
COREAPP_EXTERNAL_PORTS: "6250,6251,6252,6253"
COREAPP_HOSTNAME: "wacore1"
# This is the version of the docker templates being used to run WhatsApp Business API
WA_RUNNING_ENV_VERSION: v2.2.3
ORCHESTRATION: DOCKER-COMPOSE
depends_on:
- "master1"
wacore2:
image: docker.whatsapp.biz/coreapp:v${WA_API_VERSION:?Run docker-compose with env var WA_API_VERSION (ex. WA_API_VERSION=2.29.2 docker-compose <command> <options>)}
restart: unless-stopped
command: ["/opt/whatsapp/bin/wait_on_mysql.sh", "/opt/whatsapp/bin/launch_within_docker.sh"]
ports:
- "6250-6253"
volumes:
- whatsappMedia:/usr/local/wamedia
env_file:
- db.env
environment:
WA_APP_MULTICONNECT: 1
COREAPP_EXTERNAL_PORTS: "6250,6251,6252,6253"
COREAPP_HOSTNAME: "wacore2"
# This is the version of the docker templates being used to run WhatsApp Business API
WA_RUNNING_ENV_VERSION: v2.2.3
ORCHESTRATION: DOCKER-COMPOSE
depends_on:
- "master1"
wacore3:
image: docker.whatsapp.biz/coreapp:v${WA_API_VERSION:?Run docker-compose with env var WA_API_VERSION (ex. WA_API_VERSION=2.29.2 docker-compose <command> <options>)}
restart: unless-stopped
command: ["/opt/whatsapp/bin/wait_on_mysql.sh", "/opt/whatsapp/bin/launch_within_docker.sh"]
ports:
- "6250-6253"
volumes:
- whatsappMedia:/usr/local/wamedia
env_file:
- db.env
environment:
WA_APP_MULTICONNECT: 1
COREAPP_EXTERNAL_PORTS: "6250,6251,6252,6253"
COREAPP_HOSTNAME: "wacore3"
# This is the version of the docker templates being used to run WhatsApp Business API
WA_RUNNING_ENV_VERSION: v2.2.3
ORCHESTRATION: DOCKER-COMPOSE
depends_on:
- "master1"