forked from idurar/idurar-erp-crm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (43 loc) · 969 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
47
48
49
50
51
version: "3.8"
services:
backend:
build: ./backend
volumes:
- ./backend:/usr/src/app
- /usr/src/app/node_modules
ports:
- "8888:8888"
environment:
- NODE_ENV=development
- DATABASE=mongodb://mongo:27017/local-idurar-erp-crp
- PORT=8888
- NODE_OPTIONS=--openssl-legacy-provider
- JWT_SECRET=secret_key_1234
command: sh -c "npm run setup && npm run dev"
networks:
- server-mongo
depends_on:
- mongo
frontend:
build: ./frontend
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- REACT_APP_API_URL=http://backend:8888/api
- NODE_OPTIONS=--openssl-legacy-provider
depends_on:
- backend
mongo:
image: mongo
volumes:
- mongodb_data:/data/db
networks:
- server-mongo
volumes:
mongodb_data:
networks:
server-mongo: