-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
43 lines (41 loc) · 1.21 KB
/
docker-compose.yaml
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
version: "3"
services:
frontend:
build: ./frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
restart: always
depends_on:
- backend
stdin_open: true
networks:
- react-express
environment:
- FAST_REFRESH=${FAST_REFRESH}
- GENERATE_SOURCEMAP=${GENERATE_SOURCEMAP}
- REACT_APP_TEST=${REACT_APP_TEST}
- REACT_APP_GOOGLE_MAPS_API_KEY=${REACT_APP_GOOGLE_MAPS_API_KEY}
- URI${URI}
- JWT_SECRET_KEY${JWT_SECRET_KEY}
backend:
build: ./backend
ports:
- "4000:4000"
volumes:
- ./backend:/usr/src/app
- /usr/src/app/node_modules
networks:
- react-express
restart: always
environment:
- FAST_REFRESH=${FAST_REFRESH}
- GENERATE_SOURCEMAP=${GENERATE_SOURCEMAP}
- REACT_APP_TEST=${REACT_APP_TEST}
- REACT_APP_GOOGLE_MAPS_API_KEY=${REACT_APP_GOOGLE_MAPS_API_KEY}
- URI${URI}
- JWT_SECRET_KEY${JWT_SECRET_KEY}
networks:
react-express: