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