2056ab2f01
https://github.com/compose-spec/compose-spec/blob/master/spec.md#version-top-level-element Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
44 lines
780 B
YAML
44 lines
780 B
YAML
services:
|
|
frontend:
|
|
build: frontend
|
|
ports:
|
|
- 3000:3000
|
|
stdin_open: true
|
|
volumes:
|
|
- ./frontend:/usr/src/app
|
|
- /usr/src/app/node_modules
|
|
container_name: frontend
|
|
restart: always
|
|
networks:
|
|
- react-express
|
|
depends_on:
|
|
- backend
|
|
|
|
backend:
|
|
container_name: backend
|
|
restart: always
|
|
build: backend
|
|
volumes:
|
|
- ./backend:/usr/src/app
|
|
- /usr/src/app/node_modules
|
|
depends_on:
|
|
- mongo
|
|
networks:
|
|
- express-mongo
|
|
- react-express
|
|
expose:
|
|
- 3000
|
|
mongo:
|
|
container_name: mongo
|
|
restart: always
|
|
image: mongo:4.2.0
|
|
volumes:
|
|
- ./data:/data/db
|
|
networks:
|
|
- express-mongo
|
|
expose:
|
|
- 27017
|
|
networks:
|
|
react-express:
|
|
express-mongo:
|