chore(docker): 更新docker配置

This commit is contained in:
2025-12-02 11:10:00 +08:00
parent e4ccbbcbd1
commit ae7cfebb44
3 changed files with 10 additions and 27 deletions

1
.gitignore vendored
View File

@@ -21,6 +21,7 @@ __pycache__
# 环境变量 # 环境变量
.env .env
.env.test .env.test
.env.local
# 源码结构 # 源码结构
debug.txt debug.txt

View File

@@ -8,18 +8,22 @@ pidfile=/var/run/supervisord.pid
[program:php-fpm] [program:php-fpm]
command=php-fpm command=php-fpm
directory=/var/www/html
autostart=true autostart=true
autorestart=true autorestart=true
startretries=3 startretries=3
startsecs=1 startsecs=1
stdout_logfile=/dev/stdout stopasgroup=true
stdout_logfile_maxbytes=0 killasgroup=true
stderr_logfile=/dev/stderr stdout_logfile=/var/log/supervisor/php-fpm.log
stderr_logfile_maxbytes=0 stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=/var/log/supervisor/php-fpm-error.log
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
[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=development
process_name=%(program_name)s_%(process_num)02d process_name=%(program_name)s_%(process_num)02d
numprocs=1 numprocs=1
directory=/var/www/html directory=/var/www/html

View File

@@ -1,22 +0,0 @@
APP_DEBUG = true
APP_TRACE = true
[APP]
DEFAULT_TIMEZONE = Asia/Shanghai
[LANG]
default_lang = zh-cn
[DATABASE]
TYPE = mysql
HOSTNAME = newshop_mysql
DATABASE = shop_dev
USERNAME = shop_mallnew
PASSWORD = shop_mallnew
HOSTPORT = 3306
CHARSET = utf8
DEBUG = true
[RRDATABASE]
HOSTNAME = 192.168.2.64
[redis]
HOST = newshop_redis
PORT = 6379
PASSWORD = 'luckyshop123!@#'
EXPIRY = 604800