46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
services:
|
|
remotion:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: runner
|
|
command: >
|
|
sh -lc "NODE_ENV=development bun install --frozen-lockfile && bun run server"
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
environment:
|
|
# Use Docker service aliases so generated URLs contain valid hostnames.
|
|
S3_ENDPOINT_URL: http://minio:9000
|
|
REDIS_URL: redis://redis:6379/0
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3001/api/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 15s
|
|
ports:
|
|
- "127.0.0.1:3001:3001"
|
|
volumes:
|
|
- .:/app:cached
|
|
- remotion_node_modules:/app/node_modules
|
|
networks:
|
|
- backend
|
|
stdin_open: true
|
|
tty: true
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 4g
|
|
cpus: "2"
|
|
reservations:
|
|
memory: 1g
|
|
cpus: "0.5"
|
|
|
|
volumes:
|
|
remotion_node_modules:
|
|
|
|
networks:
|
|
backend:
|
|
external: true
|
|
name: cofee_backend_app-net
|