ilhamdev commited on
Commit
80bd4bd
·
verified ·
1 Parent(s): a559367

Update docker-compose.yml

Browse files
Files changed (1) hide show
  1. docker-compose.yml +26 -18
docker-compose.yml CHANGED
@@ -1,20 +1,28 @@
1
- version: "3.7"
2
 
3
  services:
4
- frontend:
5
- build: ./frontend
6
- command: sh -c "npm rebuild esbuild && npm run dev"
7
- volumes:
8
- - ./frontend:/usr/src/app
9
- ports:
10
- - 127.0.0.1:5173:5173
11
- backend:
12
- build: ./backend
13
- command: nodemon -L app.js
14
- volumes:
15
- - ./backend:/usr/src/app
16
- ports:
17
- - 127.0.0.1:8080:8080
18
- environment:
19
- - PORT=8080
20
- - CHESS_ENGINE_PATH=engine/stockfish16
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
 
3
  services:
4
+ frontend:
5
+ build:
6
+ context: .
7
+ dockerfile: Dockerfile
8
+ working_dir: /app/frontend
9
+ ports:
10
+ - "5173:5173"
11
+ env_file:
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