From 17354594680d82f98c7cf9e15a0b9c2e7bca8820 Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 10 Aug 2023 12:51:40 +0200 Subject: [PATCH] in multi php enviroment can't connect to mysql --- compose/docker-compose.override.yml-php-multi.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose/docker-compose.override.yml-php-multi.yml b/compose/docker-compose.override.yml-php-multi.yml index 9f5678444..28dece48c 100644 --- a/compose/docker-compose.override.yml-php-multi.yml +++ b/compose/docker-compose.override.yml-php-multi.yml @@ -21,6 +21,8 @@ x-app: &default-php - DISABLE_MODULES=${PHP_MODULES_DISABLE} # Mail-catching - ENABLE_MAIL=${PHP_MAIL_CATCH_ALL:-2} + ## Enable 127.0.0.1 Port-forwarding + - FORWARD_PORTS_TO_LOCALHOST=80:httpd:80,443:httpd:443,3306:mysql:3306,5432:pgsql:5432,6379:redis:6379,11211:memcd:11211,27017:mongo:27017 dns: - 172.16.238.100 depends_on: