Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- mongo-express:
- image: mongo-express
- ports:
- - 8080:8081
- environment:
- ME_CONFIG_BASICAUTH_USERNAME: user
- ME_CONFIG_BASICAUTH_PASSWORD: user
- ME_CONFIG_MONGODB_PORT: 27017
- ME_CONFIG_MONGODB_ADMINUSERNAME: root
- ME_CONFIG_MONGODB_ADMINPASSWORD: root
- depends_on:
- - mongo
- mongo:
- image: mongo
- environment:
- MONGO_INITDB_ROOT_USERNAME: root
- MONGO_INITDB_ROOT_PASSWORD: root
- ports:
- - 27017:27017
- volumes:
- - ./data:/data/db
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement