-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
40 lines (37 loc) · 1023 Bytes
/
compose.yaml
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
39
40
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/app # Mount frontend source code for live reloads
- /app/.next # Persist Next.js build files for hot reloading
- /app/node_modules
depends_on:
- backend
ports:
- "3000:3000" # Expose frontend app on port 3000
environment:
- NODE_ENV=development
- NEXT_TELEMETRY_DISABLED=1
networks:
- app-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend:/app # Mount backend source code for live reloads
- /app/node_modules
- /app/dist
environment:
- NODE_ENV=development
- PORT=5000
- DATABASE_URL=postgresql://neondb_owner:[email protected]/bookmarkdb?sslmode=require
ports:
- "5000:5000" # Expose backend app on port 5000
networks:
- app-network
networks:
app-network:
driver: bridge