2020-05-11 19:40:39 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
frontend:
|
|
|
|
build:
|
|
|
|
context: frontend
|
|
|
|
args:
|
|
|
|
FRONT_END_PORT: 5000
|
|
|
|
ports:
|
|
|
|
- 5000:5000
|
|
|
|
stdin_open: true
|
|
|
|
volumes:
|
|
|
|
- ./frontend:/usr/src/app
|
|
|
|
- /usr/src/app/node_modules
|
|
|
|
container_name: frontend
|
|
|
|
restart: always
|
2020-05-12 09:18:38 +00:00
|
|
|
networks:
|
|
|
|
- react-express
|
|
|
|
depends_on:
|
2020-05-12 13:05:18 +00:00
|
|
|
- backend
|
|
|
|
|
|
|
|
backend:
|
|
|
|
container_name: backend
|
2020-05-11 19:40:39 +00:00
|
|
|
restart: always
|
|
|
|
build:
|
2020-05-12 13:05:18 +00:00
|
|
|
context: backend
|
2020-05-11 19:40:39 +00:00
|
|
|
args:
|
|
|
|
NODE_PORT: 3000
|
|
|
|
volumes:
|
2020-05-12 13:05:18 +00:00
|
|
|
- ./backend:/usr/src/app
|
2020-05-11 19:40:39 +00:00
|
|
|
- /usr/src/app/node_modules
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
2020-05-12 09:18:38 +00:00
|
|
|
networks:
|
|
|
|
- express-mongo
|
|
|
|
- react-express
|
|
|
|
|
2020-05-11 19:40:39 +00:00
|
|
|
mongo:
|
|
|
|
container_name: mongo
|
|
|
|
restart: always
|
|
|
|
image: mongo:4.2.0
|
|
|
|
volumes:
|
|
|
|
- ./data:/data/db
|
2020-05-12 09:18:38 +00:00
|
|
|
networks:
|
|
|
|
- express-mongo
|
|
|
|
networks:
|
|
|
|
react-express:
|
|
|
|
express-mongo:
|