-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.dev-mount.yml
More file actions
37 lines (36 loc) · 1.22 KB
/
Copy pathdocker-compose.dev-mount.yml
File metadata and controls
37 lines (36 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Live-mount dev overlay.
#
# Mounts ``./backend/app`` and ``./backend/mcp_server`` into the backend
# container so code edits take effect without rebuilding the image. For
# the web app, also mounts ``./web`` and runs ``npm install + prisma
# bootstrap + npm run dev`` so the Next.js dev server hot-reloads.
#
# This file is OPT-IN — it is not loaded by ``docker compose up`` on its
# own (the previous name ``docker-compose.override.yml`` auto-applied,
# which silently masked the pulled GHCR images with local source).
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.dev-mount.yml up
#
# When the goal is to run the merged main exactly as published, omit
# this file and the default ``docker compose up`` uses the GHCR images
# verbatim.
services:
backend:
volumes:
- ./data:/app/data
- ./backend/app:/app/app
- ./backend/mcp_server:/app/mcp_server
app:
volumes:
- ./web:/app
- /app/node_modules
- /app/.next
command: >
sh -c "cd /app &&
npm install &&
./scripts/prisma-prepare.sh &&
npx prisma generate &&
npx prisma migrate deploy 2>/dev/null || true &&
npx prisma db seed 2>/dev/null || true &&
npm run dev"