-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 980 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: '3.9'
services:
frontend:
container_name: stocksimple_frontend
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- /usr/src/app/node_modules
- type: bind
source: ./frontend
target: /usr/src/app
consistency: cached
environment:
- CHOKIDAR_USEPOLLING=true
env_file: frontend/.env
command: npm start
stdin_open: true
tty: true
ports:
- 3000:3000
networks:
- grocery_network
backend:
container_name: stocksimple_backend
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- /usr/src/app/node_modules
- type: bind
source: ./backend
target: /usr/src/app
consistency: cached
env_file: backend/.env
environment:
- CHOKIDAR_USEPOLLING=true
command: npm run dev
ports:
- 5555:5555
networks:
- grocery_network
networks:
grocery_network:
external: true