34 lines
805 B
YAML
34 lines
805 B
YAML
services:
|
|
huobao-drama:
|
|
image: huobao-drama:latest
|
|
container_name: huobao-drama
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5678:5678"
|
|
volumes:
|
|
# 持久化数据目录(使用命名卷)
|
|
- huobao-data:/app/data
|
|
# 挂载配置文件(可选,如需自定义配置请取消注释)
|
|
# - ./configs/config.yaml:/app/configs/config.yaml:ro
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5678/health"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 10s
|
|
networks:
|
|
- huobao-network
|
|
|
|
volumes:
|
|
huobao-data:
|
|
driver: local
|
|
|
|
networks:
|
|
huobao-network:
|
|
driver: bridge
|