Skip to content

Commit 7e2bfe0

Browse files
git commit -m 'updated docker compose'
1 parent 2d90b5c commit 7e2bfe0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

course-matrix/docker-compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ services:
1212
- ./backend:/app
1313
- /app/node_modules
1414
command: ["npm", "run", "dev"]
15+
networks:
16+
- course-matrix-net
1517

1618
frontend:
1719
build:
1820
context: ./frontend
1921
args:
20-
VITE_SERVER_URL: "http://localhost:8081"
22+
VITE_SERVER_URL: "http://backend:8081"
2123
ports:
2224
- "5173:5173"
2325
volumes:
@@ -26,3 +28,9 @@ services:
2628
command: ["npm", "run", "dev"]
2729
depends_on:
2830
- backend
31+
networks:
32+
- course-matrix-net
33+
34+
networks:
35+
course-matrix-net:
36+
driver: bridge

0 commit comments

Comments
 (0)