Files
subcast/server/deploy/docker-compose.yml
向阳乔木 8a4bf37939 release.sh: survive notarytool output and the signer's key check; API runs with Docker Compose
- notarize(): capture notarytool output before matching; piping into grep -q killed tee with SIGPIPE
  and set -e aborted after Apple had accepted
- updater signing: drop the exported key env so tauri signer accepts -f
- server/deploy/docker-compose.yml: the API as deployed on myvps (node:22-alpine, data on the host)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:14:27 -08:00

26 lines
781 B
YAML

# SubCast shared-subtitles API on myvps (Qiaomu servers run apps with Docker Compose under /opt/qiaomu-apps).
# Zero dependencies, so the stock Node image runs the code as is; the database lives in ./data on the host.
services:
subcast-api:
image: node:22-alpine
container_name: qiaomu-subcast-api
restart: unless-stopped
working_dir: /app
command: ["node", "src/server.js"]
env_file: .env
environment:
HOST: 0.0.0.0
PORT: 8787
DATA_DIR: /data
volumes:
- ./src:/app/src:ro
- ./package.json:/app/package.json:ro
- ./data:/data
ports:
- "127.0.0.1:8787:8787"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8787/api/health"]
interval: 30s
timeout: 5s
retries: 3