2020-05-11 19:40:39 +00:00
|
|
|
services:
|
|
|
|
frontend:
|
2020-05-13 07:42:39 +00:00
|
|
|
build: frontend
|
2020-05-11 19:40:39 +00:00
|
|
|
ports:
|
2020-05-13 07:42:39 +00:00
|
|
|
- 3000:3000
|
2020-05-11 19:40:39 +00:00
|
|
|
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
|
2020-05-13 07:42:39 +00:00
|
|
|
build: backend
|
2020-05-11 19:40:39 +00:00
|
|
|
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
|
2021-04-30 20:29:16 +00:00
|
|
|
expose:
|
|
|
|
- 3000
|
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
|
2021-04-30 20:29:16 +00:00
|
|
|
expose:
|
|
|
|
- 27017
|
2020-05-12 09:18:38 +00:00
|
|
|
networks:
|
|
|
|
react-express:
|
|
|
|
express-mongo:
|