Skip to content

Commit 2ca0893

Browse files
feat: add Docker Compose
1 parent b28398e commit 2ca0893

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docker-compose.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: "3"
2+
3+
services:
4+
backend:
5+
build:
6+
context: ./backend
7+
dockerfile: Dockerfile
8+
ports:
9+
- "3001:3001"
10+
volumes:
11+
- ./backend:/app
12+
- /app/node_modules
13+
environment:
14+
- PORT=3001
15+
- NODE_ENV=development
16+
command: npm run dev
17+
18+
frontend:
19+
build:
20+
context: ./frontend
21+
dockerfile: Dockerfile
22+
ports:
23+
- "3000:3000"
24+
volumes:
25+
- ./frontend:/app
26+
- /app/node_modules
27+
environment:
28+
- NEXT_PUBLIC_API_URL=http://backend:3001/api
29+
depends_on:
30+
- backend
31+
command: npm run dev

0 commit comments

Comments
 (0)