Fixed xdebug step debugging when using Podman containers.
This commit is contained in:
@@ -17,8 +17,11 @@ docker compose build --no-cache
|
||||
|
||||
Start Containers:
|
||||
```bash
|
||||
# Run SomniaRooms
|
||||
docker compose up --pull always -d --wait
|
||||
docker compose --env-file .\.env.local up -d --wait
|
||||
# Run SomniaRooms with debug.
|
||||
docker compose --env-file .\.env.dev.local up -d --wait
|
||||
```
|
||||
|
||||
Stop containers
|
||||
|
||||
@@ -19,13 +19,14 @@ services:
|
||||
MERCURE_EXTRA_DIRECTIVES: demo
|
||||
# See https://xdebug.org/docs/all_settings#mode
|
||||
XDEBUG_MODE: "${XDEBUG_MODE:-off}"
|
||||
XDEBUG_CONFIG: "client_host=${XDEBUG_CLIENT_HOST:-host.docker.internal} discover_client_host=${XDEBUG_DISCOVER_CLIENT_HOST:-off}"
|
||||
XDEBUG_CONFIG: "client_host=${XDEBUG_CLIENT_HOST:-host.containers.internal} discover_client_host=${XDEBUG_DISCOVER_CLIENT_HOST:-off}"
|
||||
APP_ENV: "${APP_ENV:-dev}"
|
||||
# Change APP log path.
|
||||
# SOMNIA_LOGSDIR: "/somnia_logs"
|
||||
extra_hosts:
|
||||
# Ensure that host.docker.internal is correctly defined on Linux
|
||||
- host.docker.internal:host-gateway
|
||||
- host.containers.internal:host-gateway
|
||||
tty: true
|
||||
|
||||
###> symfony/mercure-bundle ###
|
||||
|
||||
Reference in New Issue
Block a user