mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-05-06 20:02:51 +08:00
27 lines
613 B
YAML
27 lines
613 B
YAML
services:
|
|
webui:
|
|
build: .
|
|
ports:
|
|
- "15555:15555"
|
|
environment:
|
|
- WEBUI_HOST=0.0.0.0
|
|
- WEBUI_PORT=15555
|
|
- WEBUI_ACCESS_PASSWORD=admin123
|
|
- DEBUG=0
|
|
- LOG_LEVEL=info
|
|
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
|