How to Setup Mongo DB and Mongo Express with Docker Compose ( MongoDB + Docker )

preview_player
Показать описание
How to Setup Mongo DB and Mongo Express with Docker Compose ( MongoDB + Docker ). Quick tutorial to run both mongo DB and Express with docker containers.

Key note: Make sure the names match with the mongo container and mongo express env vars.

Run the following command to start everything:
docker-compose up -d

Timeline
0:00 - Create a new project
0:20 - MongoDB Service
0:30 - Mongo Express Service
0:50 - Start all services and view express in browser

🎵 Track Info
––––––––––––––––––––––––––––––
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
––––––––––––––––––––––––––––––
Рекомендации по теме
Комментарии
Автор

Absolute life saver, thank you so much!

David-ypbk
Автор

How to setup mongo replicaset with express?

Fethbo
Автор

Thanks!
I'm tried to start compose without "restart:unless-stoped" and my mongo-express always goes down without waiting mongodb container. Your compose file reminded me about that

VintHeXer
Автор

How do you update the mongo drivers using Docker?

sterl