Last active
December 20, 2018 18:21
-
-
Save afonsoaugusto/220720c73adbe8eb23292ff79ebe427b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WA_DB_ENGINE=MYSQL | |
WA_DB_HOSTNAME=db | |
WA_DB_PORT=3306 | |
WA_DB_USERNAME=root | |
WA_DB_PASSWORD=testpass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
volumes: | |
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" | |
network_mode: bridge | |
wacore: | |
image: docker.whatsapp.biz/coreapp:v${WA_API_VERSION:-2.21.4} | |
command: ["/opt/whatsapp/bin/wait_on_mysql.sh", "/opt/whatsapp/bin/launch_within_docker.sh"] | |
volumes: | |
- whatsappMedia:/usr/local/wamedia | |
env_file: | |
- db.env | |
environment: | |
# This is the version of the docker templates being used to run WhatsApp Business API | |
WA_RUNNING_ENV_VERSION: v2.2.1 | |
ORCHESTRATION: DOCKER-COMPOSE | |
depends_on: | |
- "db" | |
network_mode: bridge | |
links: | |
- db | |
waweb: | |
image: docker.whatsapp.biz/web:v${WA_API_VERSION:-2.21.4} | |
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: | |
WACORE_HOSTNAME: wacore | |
# This is the version of the docker templates being used to run WhatsApp Business API | |
WA_RUNNING_ENV_VERSION: v2.2.1 | |
ORCHESTRATION: DOCKER-COMPOSE | |
depends_on: | |
- "db" | |
- "wacore" | |
links: | |
- db | |
- wacore | |
network_mode: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment