From 50148659c82cfce2de1194d956b11486bc926568 Mon Sep 17 00:00:00 2001 From: dimti Date: Thu, 16 Jan 2025 09:21:37 +0300 Subject: [PATCH] + additional doc for detect your gateway/host ip in docker network and describe how to ufw allow appropriate ports --- .env.example | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index ba3f68c..7fed70d 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,7 @@ -# Enter your Docker Host IP (will be appended to /etc/hosts). Default is `10.0.75.1` -DOCKER_HOST_IP=172.20.0.1 +# Enter your gateway IP (your host IP under from docker containers) - that need for correctly worked xdebug from cli +# For detect that IP use: docker network inspect structure_default | grep Gateway | xargs | cut -d ' ' -f2 +# For UFW allowing ports on the host system: ufw allow to 172.18.0.1 port 9000,9003 +DOCKER_HOST_IP=172.18.0.1 PROJECTS_DIR=/home/youruser/PhpstormProjects ### Common ###############################################