Mysql not yet running
I am trying to use whatsapp business api. But the problem is when I run docker-compose up I get the error Mysql not yet started. Though the wadebug tool shows everything correct. I am not able to hit any api eg GET https://localhost:9090/v1/settings/application I am getting connection refused in this request.enter image description here
I have also one more doubt.Am I hitting the right api or is there any different. In their documentation it is written your app hostname. Docker-compose ps shows 0.0.0.0:9000->443. So is it right?
Here is my docker-compose file:
version: '3' volumes: whatsappMedia: driver: local mysqlData: driver: local services: db: image: mysql:5.7.22 restart: always environment: MYSQL_ROOT_PASSWORD: hello123 MYSQL_USER: root MYSQL_PASSWORD: hello123 expose: - "33060" ports: - "33060:3306" volumes: - mysqlData:/var/lib/mysql network_mode: bridge wacore: image: docker.whatsapp.biz/coreapp:v${WA_API_VERSION:?Run docker-compose with env var WA_API_VERSION (ex. WA_API_VERSION=2.25.1 docker-compose <command> <options>)} 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.3 ORCHESTRATION: DOCKER-COMPOSE depends_on: - "db" network_mode: bridge links: - db waweb: image: docker.whatsapp.biz/web:v${WA_API_VERSION:?Run docker-compose with env var WA_API_VERSION (ex. WA_API_VERSION=2.25.1 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: WACORE_HOSTNAME: wacore # 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" - "wacore" links: - db - wacore network_mode: bridge