clipwright/docker-compose.yml
pedro-bento 2dc1ba1eea
All checks were successful
CI / backend-e2e (push) Successful in 1m20s
CI / unit (push) Successful in 45s
CI / dashboard-e2e (push) Successful in 2m31s
feat/youtube-growth-toolkit (#8)
Reviewed-on: #8
Co-authored-by: pedro-bento <mail@pbento.pt>
Co-committed-by: pedro-bento <mail@pbento.pt>
2026-10-05 20:33:56 +01:00

40 lines
1.2 KiB
YAML

services:
backend:
build: .
container_name: clipwright-backend
ports:
- "8000:8000"
volumes:
- .:/app
- /app/__pycache__
- ./output:/app/output
# Persistent, writable cache for the ASR model downloads. Without this the
# bind mount above shadows /app/.cache with a host-owned dir the non-root
# appuser cannot write (HF cache permission-denied warnings). The named
# volume is initialised from the image's appuser-owned dir, so it stays
# writable and the model survives container recreates.
- huggingface-cache:/app/.cache/huggingface
restart: unless-stopped
frontend:
build:
context: ./dashboard
target: dev
container_name: clipwright-frontend
ports:
- "5175:5173"
volumes:
- ./dashboard:/app
- /app/node_modules
environment:
# Optional OpenPanel analytics. Defined (empty) so Vite resolves the
# %VITE_OPENPANEL_*% placeholders in index.html instead of warning that
# they're undefined; empty keeps analytics fully inert. See index.html.
- VITE_OPENPANEL_API_URL=
- VITE_OPENPANEL_CLIENT_ID=
restart: unless-stopped
depends_on:
- backend
volumes:
huggingface-cache: