chore(docker): 更新supervisord.conf

This commit is contained in:
2025-12-02 10:19:06 +08:00
parent 41ac96630c
commit 6a7b465944
4 changed files with 33 additions and 14 deletions

View File

@@ -1,24 +1,26 @@
# 项目配置, 请根据实际情况修改 # 项目配置, 请根据实际情况修改
PROJECT_NAME=newshop PROJECT_NAME=newshop
# ThinkPHP 6.x 配置, 请根据实际情况修改
APP_ENV=development
# PHP/PHP-FPM 配置 # PHP/PHP-FPM 配置
PHP_VERSION=7.4 PHP_VERSION=7.4
PHP_FPM_VERSION=7.4-fpm PHP_FPM_VERSION=7.4-fpm
PHP_FPM_PORT=9000 PHP_FPM_PORT=9100
XDEBUG_POST=9003 XDEBUG_POST=9103
# 数据库配置 # 数据库配置
MYSQL_ROOT_HOST=% MYSQL_ROOT_HOST=%
MYSQL_DATABASE=shop_mallnew MYSQL_DATABASE=shop_mallnew
MYSQL_USER=shop_mallnew MYSQL_USER=shop_mallnew
MYSQL_PASSWORD=shop_mallnew MYSQL_PASSWORD=shop_mallnew
MYSQL_PORT=3306 MYSQL_PORT=3316
# Redis 配置 # Redis 配置
REDIS_PASSWORD=luckyshop123!@# REDIS_PASSWORD=luckyshop123!@#
REDIS_PORT=6379 REDIS_PORT=6399
# Nginx 配置 # Nginx 配置
NGINX_PORT=80 NGINX_PORT=8010
NGINX_SSL_PORT=443 NGINX_SSL_PORT=8012

4
.gitignore vendored
View File

@@ -18,6 +18,10 @@ __pycache__
.idea .idea
.vscode .vscode
# 环境变量
.env
.env.test
# 源码结构 # 源码结构
debug.txt debug.txt
.travis.yml .travis.yml

8
README.md Normal file
View File

@@ -0,0 +1,8 @@
# 在线商城PHP项目
## Docker 部署
```bash
cp .env.example .env
```

View File

@@ -19,12 +19,17 @@ stderr_logfile_maxbytes=0
[program:think-cron] [program:think-cron]
command=php /var/www/html/think cron:schedule command=php /var/www/html/think cron:schedule
environment=APP_ENV=local process_name=%(program_name)s_%(process_num)02d
numprocs=1
directory=/var/www/html
autostart=true autostart=true
autorestart=true autorestart=true
startretries=5 startretries=3
startsecs=2 stdout_logfile=/var/log/supervisor/think-cron.log
stdout_logfile=/dev/stdout stdout_logfile_maxbytes=10MB
stdout_logfile_maxbytes=0 stdout_logfile_backups=10
stderr_logfile=/dev/stderr stderr_logfile=/var/log/supervisor/think-cron-error.log
stderr_logfile_maxbytes=0 stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
startsecs=3
stopwaitsecs=10