docker-compose -f docker-compose.apache.yml up
docker-compose -f docker-compose.nginx+apache.yml up
docker-compose -f docker-compose.nginx+php-fpm.yml up
$db = new PDO('pgsql:host=postgres;dbname=postgres;user=postgres');
$db = new PDO('mysql:host=mysql;dbname=mysql', 'root');
@ozcan-durak You need to publish MySQL's port and map it to the host by adding
"ports": ["3306:3306"]
to the"mysql"
service in yourdocker-compose.yml
. Then you should be able to connect tolocalhost:3306
from your Sequel Pro.