dev:修改docker-compose.yml

This commit is contained in:
liubocheng 2025-03-26 20:12:40 +08:00
parent 8807e7ab70
commit 1999b6b2d0
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,12 @@ services:
working_dir: /var/www/html
networks:
- laravel_net
# 启动时安装 Composer 和依赖
command: >
sh -c "docker-php-ext-install pdo_mysql zip
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
&& composer install --no-dev --optimize-autoloader
&& php-fpm"
nginx:
image: nginx:1.18