Skip to content

Commit 0e8e037

Browse files
Rishi ViswanathanRishi Viswanathan
Rishi Viswanathan
authored and
Rishi Viswanathan
committed
fix: rexolve merge
2 parents 46aa4ca + a3041f5 commit 0e8e037

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

exp2/docker-compose.yml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
services:
2-
mongo:
3-
image: mongo:latest
4-
container_name: mongo
5-
ports:
6-
- "27017:27017"
7-
volumes:
8-
- ./data:/data/db
9-
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
10-
networks:
11-
- app-network
12-
environment:
13-
- MONGO_INITDB_ROOT_USERNAME=root
14-
- MONGO_INITDB_ROOT_PASSWORD=password
15-
16-
backend:
17-
build:
18-
context: ./server
19-
dockerfile: Dockerfile
20-
ports:
21-
- "8000:8000"
22-
volumes:
23-
- ./server:/usr/src/app/server
24-
- /usr/src/app/server/node_modules
25-
depends_on:
26-
- mongo
27-
networks:
28-
- app-network
29-
30-
frontend:
31-
build:
32-
context: ./client
33-
dockerfile: Dockerfile
34-
ports:
35-
- "5173:5173"
36-
volumes:
37-
- ./client:/usr/src/app/client
38-
- /usr/src/app/client/node_modules
39-
depends_on:
40-
- backend
41-
42-
networks:
43-
app-network:
1+
services:
2+
mongo:
3+
image: mongo:latest
4+
container_name: mongo
5+
ports:
6+
- "27017:27017"
7+
volumes:
8+
- ./data:/data/db
9+
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
10+
networks:
11+
- app-network
12+
environment:
13+
- MONGO_INITDB_ROOT_USERNAME=root
14+
- MONGO_INITDB_ROOT_PASSWORD=password
15+
16+
backend:
17+
build:
18+
context: ./server
19+
dockerfile: Dockerfile
20+
ports:
21+
- "8000:8000"
22+
volumes:
23+
- ./server:/usr/src/app/server
24+
- /usr/src/app/server/node_modules
25+
depends_on:
26+
- mongo
27+
networks:
28+
- app-network
29+
30+
frontend:
31+
build:
32+
context: ./client
33+
dockerfile: Dockerfile
34+
ports:
35+
- "5173:5173"
36+
volumes:
37+
- ./client:/usr/src/app/client
38+
- /usr/src/app/client/node_modules
39+
depends_on:
40+
- backend
41+
42+
networks:
43+
app-network:
4444
driver: bridge

0 commit comments

Comments
 (0)