chore(docker): 增加支持websocket转发功能,PHP容器不暴漏端口到主机

This commit is contained in:
2025-12-19 15:32:34 +08:00
parent 498122f57e
commit ba5c2239ac
10 changed files with 35 additions and 20 deletions

View File

@@ -27,8 +27,6 @@ services:
# 不然ThinkPHP 6.x 系列,会只加载 .env 文件,而不会加载 .env.local 文件,导致 .env.local 文件中的配置不会生效
APP_ENV: ${APP_ENV:-local}
APP_DEBUG: ${APP_DEBUG:-true}
ports:
- "${PHP_FPM_PORT:-9000}:9000" # PHP-FPM
volumes:
- ./:/var/www/all_source
- ./src:/var/www/html