Last active
December 28, 2020 17:41
-
-
Save nkreiger/a9ff3d066cf59a7c743528ee07b4faea to your computer and use it in GitHub Desktop.
basic mongodb setup with express as a GUI
This file contains 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
version: '3.7' | |
services: | |
mongo: | |
image: mongo | |
restart: always | |
ports: | |
- 27017:27017 | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: admin | |
MONGO_INITDB_ROOT_PASSWORD: admin | |
mongo-express: | |
image: mongo-express | |
restart: always | |
ports: | |
- 8081:8081 | |
environment: | |
ME_CONFIG_MONGODB_ADMINUSERNAME: admin | |
ME_CONFIG_MONGODB_ADMINPASSWORD: admin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment