-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
38 lines (35 loc) · 1.07 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
38 lines (35 loc) · 1.07 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
38
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
#
# In dev mode:
# - The app container runs only the Fastify API on :3000 (no static serving)
# - Run `npm run dev --prefix app/client` locally for the Vite dev server on :5173
# - Vite proxies /api/* → localhost:3000
# - Postgres is exposed on :5432 for DB tools
services:
nexusmediaserver:
build:
context: .
dockerfile: Dockerfile
target: dev
ports:
- "3000:3000"
volumes:
- ./src:/app/src:ro
# Add your media volumes here for dev testing (mirror what you'd mount in production)
environment:
NODE_ENV: development
SETUP_COMPLETE: ${SETUP_COMPLETE:-false}
transcoder:
build:
context: ./transcoder
target: dev
volumes:
- ./transcoder/src:/app/src:ro
# Mirror media volumes here too
environment:
NODE_ENV: development
# In dev the app is on the host, not in Docker network — use host.docker.internal
API_URL: http://host.docker.internal:3000
db:
ports:
- "5432:5432"