Created
February 23, 2022 14:27
-
-
Save pawiromitchel/c58b699dc3b9e0410783a015f21f0455 to your computer and use it in GitHub Desktop.
[mongodb docker image] #docker #mongodb
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
# https://hub.docker.com/_/mongo | |
version: '3.1' | |
services: | |
mongo: | |
image: mongo | |
restart: always | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: suchanicepassword | |
mongo-express: | |
image: mongo-express | |
restart: always | |
ports: | |
- 8081:8081 | |
environment: | |
ME_CONFIG_MONGODB_ADMINUSERNAME: root | |
ME_CONFIG_MONGODB_ADMINPASSWORD: suchanicepassword | |
ME_CONFIG_MONGODB_URL: mongodb://root:suchanicepassword@mongo:27017/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment