Created
April 2, 2020 13:31
-
-
Save bmorrisondev/03bceac85054362ad35e2128bc0827c1 to your computer and use it in GitHub Desktop.
Here is a docker-compose file that can be used to spin up an instance of #mongodb along with the mongo-express gui
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source: https://hub.docker.com/_/mongo | |
| # Use root/example as user/password credentials | |
| version: '3.1' | |
| services: | |
| mongo: | |
| image: mongo | |
| restart: always | |
| # You can uncomment this to set a password, but I use it locally with no auth for testing. | |
| # environment: | |
| # MONGO_INITDB_ROOT_USERNAME: root | |
| # MONGO_INITDB_ROOT_PASSWORD: example | |
| mongo-express: | |
| image: mongo-express | |
| restart: always | |
| ports: | |
| - 8081:8081 | |
| environment: | |
| ME_CONFIG_MONGODB_ADMINUSERNAME: root | |
| ME_CONFIG_MONGODB_ADMINPASSWORD: example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment