You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
780 B
44 lines
780 B
4 years ago
|
services:
|
||
|
frontend:
|
||
4 years ago
|
build: frontend
|
||
4 years ago
|
ports:
|
||
4 years ago
|
- 3000:3000
|
||
4 years ago
|
stdin_open: true
|
||
|
volumes:
|
||
|
- ./frontend:/usr/src/app
|
||
|
- /usr/src/app/node_modules
|
||
|
container_name: frontend
|
||
|
restart: always
|
||
4 years ago
|
networks:
|
||
|
- react-express
|
||
|
depends_on:
|
||
4 years ago
|
- backend
|
||
|
|
||
|
backend:
|
||
|
container_name: backend
|
||
4 years ago
|
restart: always
|
||
4 years ago
|
build: backend
|
||
4 years ago
|
volumes:
|
||
4 years ago
|
- ./backend:/usr/src/app
|
||
4 years ago
|
- /usr/src/app/node_modules
|
||
|
depends_on:
|
||
|
- mongo
|
||
4 years ago
|
networks:
|
||
|
- express-mongo
|
||
|
- react-express
|
||
3 years ago
|
expose:
|
||
|
- 3000
|
||
4 years ago
|
mongo:
|
||
|
container_name: mongo
|
||
|
restart: always
|
||
|
image: mongo:4.2.0
|
||
|
volumes:
|
||
|
- ./data:/data/db
|
||
4 years ago
|
networks:
|
||
|
- express-mongo
|
||
3 years ago
|
expose:
|
||
|
- 27017
|
||
4 years ago
|
networks:
|
||
|
react-express:
|
||
|
express-mongo:
|