# 默认编排:拉取 GHCR 预构建镜像(推荐) # 用法: # docker pull ghcr.io/vastsa/bokebox:latest # docker compose up -d # 或: ./start.sh docker # # 本地从源码构建请用: # ./start.sh docker.local # docker compose -f docker-compose.local.yml up -d --build # # 可通过环境变量覆盖: # GHCR_IMAGE=ghcr.io/vastsa/bokebox # IMAGE_TAG=latest services: bokebox: image: ${GHCR_IMAGE:-ghcr.io/vastsa/bokebox}:${IMAGE_TAG:-latest} container_name: bokebox ports: - "${PORT:-8787}:8787" env_file: - .env environment: HOST: 0.0.0.0 PORT: 8787 volumes: - ./storage:/app/storage restart: unless-stopped healthcheck: test: [ "CMD", "node", "-e", "fetch('http://127.0.0.1:8787/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))", ] interval: 30s timeout: 5s start_period: 20s retries: 3