This commit is contained in:
2025-10-29 15:32:26 +08:00
parent d90614805b
commit b7462657cd
78921 changed files with 2753938 additions and 71 deletions

View File

@@ -6,17 +6,24 @@ services:
dockerfile: Dockerfile
container_name: newshop_php
restart: always
extra_hosts:
- "host.docker.internal:host-gateway" # 支持主机名解析
environment:
- PHP_ENV=development
- APP_ENV=development
- APP_DEBUG=true
- XDEBUG_CONFIG=client_host=host.docker.internal client_port=9003
- PHP_IDE_CONFIG=serverName=docker-php
ports:
- "9000:9000" # PHP-FPM
- "9003:9003" # Xdebug
volumes:
- ./src:/var/www/html
# 更新下载源列表以加速apt-get
- ./docker/debian/sources.list:/etc/apt/sources.list:ro
- ./docker/php/php.ini:/usr/local/etc/php/php.ini:ro
- ./docker/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- xdebug_logs:/tmp # Xdebug 日志目录
depends_on:
- db
networks:
@@ -88,6 +95,7 @@ services:
volumes:
mysql_db_data:
redis_data:
xdebug_logs:
networks:
newshop-net: