Update deployment guidance for standard and Laya-profile Compose flows, and mark the Laya service as profile-gated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
services:
|
|
nodecast-tv:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: gitea.anthonybouteiller.ovh/blomios/nodecast-tv:latest
|
|
container_name: nodecast-tv
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./data:/app/data
|
|
restart: unless-stopped
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=3000 # Internal container port
|
|
- LAYA_BASE_URL=http://laya:8000
|
|
- LAYA_BATCH_TIMEOUT_MS=120000
|
|
devices:
|
|
- /dev/dri:/dev/dri # Required for VAAPI/QuickSync/AMF (Linux)
|
|
|
|
laya:
|
|
profiles: ["laya"]
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.laya
|
|
volumes:
|
|
- ./data/models/laya:/models
|
|
environment:
|
|
- HF_HOME=/models
|
|
- LAYA_PRELOAD=0
|
|
- LAYA_HOST=0.0.0.0
|
|
- LAYA_PORT=8000
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=3)"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 12
|
|
start_period: 30s
|
|
restart: unless-stopped
|