Build server image / build (push) Failing after 2s
Remove embedded credentials and private deployment configuration; document the remaining publication checks.
30 lines
659 B
YAML
30 lines
659 B
YAML
name: short-form-video
|
|
|
|
services:
|
|
server:
|
|
build: ./server
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
MEDIA_ROOT: /media
|
|
DATA_ROOT: /data
|
|
RESCAN_INTERVAL: 1m
|
|
API_TOKEN: ${API_TOKEN:?Set API_TOKEN in .env or the environment}
|
|
volumes:
|
|
- type: volume
|
|
source: catalog-data
|
|
target: /data
|
|
- type: bind
|
|
source: ${MEDIA_PATH:-./sample-media}
|
|
target: /media
|
|
read_only: true
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "-O", "-", "http://127.0.0.1:8080/healthz"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
|
|
volumes:
|
|
catalog-data:
|