mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-05-11 18:10:53 +08:00
chore: finalize deployment config for master release
This commit is contained in:
@@ -8,12 +8,21 @@ services:
|
||||
environment:
|
||||
- WEBUI_HOST=0.0.0.0
|
||||
- WEBUI_PORT=15555
|
||||
- WEBUI_ACCESS_PASSWORD=admin123
|
||||
- DEBUG=0
|
||||
- LOG_LEVEL=info
|
||||
# 如果需要访问密码,可以在这里取消注释并设置
|
||||
# - WEBUI_ACCESS_PASSWORD=your_secure_password
|
||||
volumes:
|
||||
# 挂载数据目录以持久化数据库和日志
|
||||
- ./data:/app/data
|
||||
- ./logs:/app/logs
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- python
|
||||
- -c
|
||||
- import urllib.request; urllib.request.urlopen('http://127.0.0.1:15555/', timeout=5).read()
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user