不支持compose

This commit is contained in:
coolxitech 2024-10-29 18:42:07 +08:00
parent 9c4d201aeb
commit 98b555e800
2 changed files with 14 additions and 12 deletions

View File

@ -1,12 +0,0 @@
version: '3.8'
services:
php:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/var/www/html # 将当前目录挂载到容器
command: php think run # 启动 PHP 内置服务器
ports:
- "8000:8000" # 映射容器端口到主机端口

14
scripts/supervisord.conf Normal file
View File

@ -0,0 +1,14 @@
[supervisord]
nodaemon=true
[program:web]
command=php /app/think run
autostart=true
autorestart=true
[program:check_tasks]
command=/app/scripts/run_tasks.sh
autostart=true
autorestart=true
startretries=99999 ; 设置为一个很大的值
startsecs=5 ; 启动后等待时间