mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2026-02-21 15:31:12 +08:00
不支持compose
This commit is contained in:
parent
9c4d201aeb
commit
98b555e800
@ -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
14
scripts/supervisord.conf
Normal 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 ; 启动后等待时间
|
||||
Loading…
Reference in New Issue
Block a user