mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-19 07:18:06 +02:00
Adopt Compose v2 (#240)
* Adopt Compose v2 Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
bc95525543
commit
667bd9facb
79 changed files with 237 additions and 237 deletions
43
react-express-mongodb/compose.yaml
Normal file
43
react-express-mongodb/compose.yaml
Normal file
|
@ -0,0 +1,43 @@
|
|||
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:
|
Loading…
Add table
Add a link
Reference in a new issue