clipwright/docker-compose.yml
pedro-bento 6aa3b0ec82
All checks were successful
CI / unit (pull_request) Successful in 45s
CI / backend-e2e (pull_request) Successful in 1m21s
CI / dashboard-e2e (pull_request) Successful in 2m23s
chore(docker): keep runtime caches out of the bind-mounted repo
HOME=/tmp + MPLCONFIGDIR/HF_HOME/YOLO_CONFIG_DIR stop matplotlib, fontconfig and ASR caches writing into the host bind mount (unwritable by the non-root appuser). A persistent huggingface-cache named volume holds the model downloads; .fontconfig/ is now gitignored.
2026-10-05 19:23:27 +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: