You cannot 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
YAML
44 lines
780 B
YAML
5 years ago
|
services:
|
||
|
frontend:
|
||
5 years ago
|
build: frontend
|
||
5 years ago
|
ports:
|
||
5 years ago
|
- 3000:3000
|
||
5 years ago
|
stdin_open: true
|
||
|
volumes:
|
||
|
- ./frontend:/usr/src/app
|
||
|
- /usr/src/app/node_modules
|
||
|
container_name: frontend
|
||
|
restart: always
|
||
5 years ago
|
networks:
|
||
|
- react-express
|
||
|
depends_on:
|
||
5 years ago
|
- backend
|
||
|
|
||
|
backend:
|
||
|
container_name: backend
|
||
5 years ago
|
restart: always
|
||
5 years ago
|
build: backend
|
||
5 years ago
|
volumes:
|
||
5 years ago
|
- ./backend:/usr/src/app
|
||
5 years ago
|
- /usr/src/app/node_modules
|
||
|
depends_on:
|
||
|
- mongo
|
||
5 years ago
|
networks:
|
||
|
- express-mongo
|
||
|
- react-express
|
||
4 years ago
|
expose:
|
||
|
- 3000
|
||
5 years ago
|
mongo:
|
||
|
container_name: mongo
|
||
|
restart: always
|
||
|
image: mongo:4.2.0
|
||
|
volumes:
|
||
|
- ./data:/data/db
|
||
5 years ago
|
networks:
|
||
|
- express-mongo
|
||
4 years ago
|
expose:
|
||
|
- 27017
|
||
5 years ago
|
networks:
|
||
|
react-express:
|
||
|
express-mongo:
|