Skip to content

Commit

Permalink
react-express-mongodb: remove container_name to allow multiple apps i…
Browse files Browse the repository at this point in the history
…n parallel (docker#310)

Remove `container_name` to allow multiple apps without conflict.

Signed-off-by: Stefan Scherer <[email protected]>
  • Loading branch information
StefanScherer authored Dec 8, 2022
1 parent e3ea3e9 commit 6f15838
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion react-express-mongodb/.docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ services:
expose:
- 3000
mongo:
container_name: mongo
restart: always
image: mongo:4.2.0
volumes:
Expand Down
3 changes: 0 additions & 3 deletions react-express-mongodb/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ services:
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:
context: backend
Expand All @@ -33,7 +31,6 @@ services:
expose:
- 3000
mongo:
container_name: mongo
restart: always
image: mongo:4.2.0
volumes:
Expand Down

0 comments on commit 6f15838

Please sign in to comment.