修改docker相关配置,支持通过.env文件传入变量

This commit is contained in:
2025-11-03 13:52:13 +08:00
parent 197cb0e9bc
commit 370e790d9d
2 changed files with 65 additions and 30 deletions

24
.env.example Normal file
View File

@@ -0,0 +1,24 @@
# 项目配置, 请根据实际情况修改
PROJECT_NAME=newshop
# PHP/PHP-FPM 配置
PHP_VERSION=7.4
PHP_FPM_VERSION=7.4-fpm
PHP_FPM_PORT=9000
XDEBUG_POST=9003
# 数据库配置
MYSQL_ROOT_HOST=%
MYSQL_DATABASE=shop_mallnew
MYSQL_USER=shop_mallnew
MYSQL_PASSWORD=shop_mallnew
MYSQL_PORT=3306
# Redis 配置
REDIS_PASSWORD=luckyshop123!@#
REDIS_PORT=6379
# Nginx 配置
NGINX_PORT=80
NGINX_SSL_PORT=443