mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-09-06 16:06:41 +08:00
chore: finalize deployment config for master release
This commit is contained in:
+11
-2
@@ -8,12 +8,21 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- WEBUI_HOST=0.0.0.0
|
- WEBUI_HOST=0.0.0.0
|
||||||
- WEBUI_PORT=15555
|
- WEBUI_PORT=15555
|
||||||
|
- WEBUI_ACCESS_PASSWORD=admin123
|
||||||
- DEBUG=0
|
- DEBUG=0
|
||||||
- LOG_LEVEL=info
|
- LOG_LEVEL=info
|
||||||
# 如果需要访问密码,可以在这里取消注释并设置
|
|
||||||
# - WEBUI_ACCESS_PASSWORD=your_secure_password
|
|
||||||
volumes:
|
volumes:
|
||||||
# 挂载数据目录以持久化数据库和日志
|
# 挂载数据目录以持久化数据库和日志
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
- ./logs:/app/logs
|
- ./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
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user