Skip to content

Commit ee6877f

Browse files
committed
add_docker-compose
1 parent c6b5f73 commit ee6877f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docker-compose.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: '3.8'
2+
services:
3+
4+
frontend:
5+
build:
6+
context: ./frontend
7+
container_name: styleshare-frontend
8+
ports:
9+
- '3000:3000'
10+
11+
backend:
12+
build:
13+
context: ./backend
14+
container_name: styleshare-backend
15+
depends_on:
16+
- db
17+
env_file:
18+
- ./backend/.env
19+
ports:
20+
- '8000:8000'
21+
22+
db:
23+
image: mongo:latest
24+
container_name: styleshare-db
25+
restart: always
26+
ports:
27+
- '27017:27017'
28+
volumes:
29+
- mongodb_data:/data/db
30+
31+
volumes:
32+
mongodb_data:

0 commit comments

Comments
 (0)