-
-
Save ualmtorres/48fd676d2e07cd9c905caf7fed3f5bbf to your computer and use it in GitHub Desktop.
Docker compose para MongoDB y MongoDB Express
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
# Use root/example as user/password credentials | |
version: '3.1' | |
services: | |
mongo: | |
image: mongo | |
restart: always | |
ports: | |
- 27017:27017 | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: example | |
mongo-express: | |
image: mongo-express | |
restart: always | |
ports: | |
- 8082: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