react-express-mongodb: remove container_name to allow multiple apps in parallel (#310)
Remove `container_name` to allow multiple apps without conflict. Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
parent
e3ea3e9044
commit
6f15838d24
@ -29,7 +29,6 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- 3000
|
- 3000
|
||||||
mongo:
|
mongo:
|
||||||
container_name: mongo
|
|
||||||
restart: always
|
restart: always
|
||||||
image: mongo:4.2.0
|
image: mongo:4.2.0
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -9,7 +9,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/usr/src/app
|
- ./frontend:/usr/src/app
|
||||||
- /usr/src/app/node_modules
|
- /usr/src/app/node_modules
|
||||||
container_name: frontend
|
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- react-express
|
- react-express
|
||||||
@ -17,7 +16,6 @@ services:
|
|||||||
- backend
|
- backend
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
container_name: backend
|
|
||||||
restart: always
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: backend
|
context: backend
|
||||||
@ -33,7 +31,6 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- 3000
|
- 3000
|
||||||
mongo:
|
mongo:
|
||||||
container_name: mongo
|
|
||||||
restart: always
|
restart: always
|
||||||
image: mongo:4.2.0
|
image: mongo:4.2.0
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user