Not able to connect to mysql container from php container
问题 I am having 2 docker containers for php app and mysql. Both are working perfectly individually. I can access my php app at localhost:8000 and can connect mysql at localhost:3306 using MySQL Workbench. But, my php app which is inside the container is not able to connect to the mysql db which is inside another container. My docker-compose.yml file is as follows: version: '3' services: website: container_name: php-app image: php-app build: context: ./ volumes: - php-app:/var/www/html/ ports: -