Update docker-compose.yml
Browse files- docker-compose.yml +3 -5
docker-compose.yml
CHANGED
@@ -4,7 +4,7 @@ services:
|
|
4 |
frontend:
|
5 |
build:
|
6 |
context: .
|
7 |
-
dockerfile: Dockerfile
|
8 |
working_dir: /app/frontend
|
9 |
ports:
|
10 |
- "5173:5173"
|
@@ -12,17 +12,15 @@ services:
|
|
12 |
- frontend/.env
|
13 |
volumes:
|
14 |
- .:/app
|
15 |
-
command: npm run dev
|
16 |
|
17 |
backend:
|
18 |
build:
|
19 |
context: .
|
20 |
-
dockerfile: Dockerfile
|
21 |
working_dir: /app/backend
|
22 |
ports:
|
23 |
- "3000:3000"
|
24 |
env_file:
|
25 |
- backend/.env
|
26 |
volumes:
|
27 |
-
- .:/app
|
28 |
-
command: npm run dev
|
|
|
4 |
frontend:
|
5 |
build:
|
6 |
context: .
|
7 |
+
dockerfile: Dockerfile.frontend
|
8 |
working_dir: /app/frontend
|
9 |
ports:
|
10 |
- "5173:5173"
|
|
|
12 |
- frontend/.env
|
13 |
volumes:
|
14 |
- .:/app
|
|
|
15 |
|
16 |
backend:
|
17 |
build:
|
18 |
context: .
|
19 |
+
dockerfile: Dockerfile.backend
|
20 |
working_dir: /app/backend
|
21 |
ports:
|
22 |
- "3000:3000"
|
23 |
env_file:
|
24 |
- backend/.env
|
25 |
volumes:
|
26 |
+
- .:/app
|
|