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: