23 lines
506 B
YAML
23 lines
506 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
xugou-app:
|
|
image: zaunist/xugou:latest
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- NODE_ENV=production
|
|
volumes:
|
|
# 挂载 .wrangler 目录用于数据持久化(SQLite 数据库文件)
|
|
- wrangler_data:/app/.wrangler
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
wrangler_data:
|
|
driver: local |