Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- mongo:
- image: mongo
- environment:
- MONGO_INITDB_ROOT_USERNAME: root
- MONGO_INITDB_ROOT_PASSWORD: example
- ports:
- - "27017:27017"
- mongo-express:
- image: mongo-express
- environment:
- ME_CONFIG_MONGODB_SERVER: mongo
- ME_CONFIG_MONGODB_PORT: 27017
- ME_CONFIG_MONGODB_ENABLE_ADMIN: 'true'
- ME_CONFIG_MONGODB_AUTH_DATABASE: admin
- ME_CONFIG_MONGODB_ADMINUSERNAME: root
- ME_CONFIG_MONGODB_ADMINPASSWORD: example
- ME_CONFIG_BASICAUTH_USERNAME: root2
- ME_CONFIG_BASICAUTH_PASSWORD: example2
- depends_on:
- - mongo
- ports:
- - "8888:8081"
Add Comment
Please, Sign In to add comment