38 lines
817 B
YAML
38 lines
817 B
YAML
services:
|
|
remotion:
|
|
image: cofee-remotion:compute
|
|
container_name: cofee_remotion_compute
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: prod
|
|
env_file:
|
|
- .env
|
|
restart: unless-stopped
|
|
environment:
|
|
NODE_ENV: production
|
|
HOST: 0.0.0.0
|
|
PORT: ${REMOTION_PORT:-8001}
|
|
ports:
|
|
- "${REMOTION_HOST:-0.0.0.0}:${REMOTION_PORT:-8001}:${REMOTION_PORT:-8001}"
|
|
volumes:
|
|
- ~/storage/cofee_remotion_compute/out:/app/out
|
|
networks:
|
|
- services_local
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"curl",
|
|
"-f",
|
|
"http://localhost:${REMOTION_PORT:-8001}/api/health",
|
|
]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
|
|
networks:
|
|
services_local:
|
|
external: true
|