- dashboard/Dockerfile: multi-stage — 'dev' (Vite HMR for local compose) and 'prod' (npm build -> nginx static serving, SPA fallback). Prod is the default target so Coolify builds the static app; VITE_API_URL is a build arg. - dashboard/nginx.conf: SPA routing + asset caching + basic security headers. - docker-compose.yml: local frontend targets the dev stage. - app.py: skip the redundant AWS S3 upload in cloud mode (R2 is the store now); add a /health liveness endpoint for uptime checks. Verified: prod image serves index.html + deep-link fallback (200).
42 lines
837 B
YAML
42 lines
837 B
YAML
services:
|
|
backend:
|
|
build: .
|
|
container_name: openshorts-backend
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- .:/app
|
|
- /app/__pycache__
|
|
- ./output:/app/output
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build:
|
|
context: ./dashboard
|
|
target: dev
|
|
container_name: openshorts-frontend
|
|
ports:
|
|
- "5175:5173"
|
|
volumes:
|
|
- ./dashboard:/app
|
|
- /app/node_modules
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- backend
|
|
|
|
renderer:
|
|
build:
|
|
context: .
|
|
dockerfile: render-service/Dockerfile
|
|
container_name: openshorts-renderer
|
|
ports:
|
|
- "3100:3100"
|
|
volumes:
|
|
- ./output:/output
|
|
environment:
|
|
- REMOTION_BUNDLE_PATH=/app/remotion
|
|
- OUTPUT_DIR=/output
|
|
- PORT=3100
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- backend
|