Guest User

Untitled

a guest
Nov 12th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. mongo:
  5. image: mongo
  6. environment:
  7. MONGO_INITDB_ROOT_USERNAME: root
  8. MONGO_INITDB_ROOT_PASSWORD: example
  9. ports:
  10. - "27017:27017"
  11. mongo-express:
  12. image: mongo-express
  13. environment:
  14. ME_CONFIG_MONGODB_SERVER: mongo
  15. ME_CONFIG_MONGODB_PORT: 27017
  16. ME_CONFIG_MONGODB_ENABLE_ADMIN: 'true'
  17. ME_CONFIG_MONGODB_AUTH_DATABASE: admin
  18. ME_CONFIG_MONGODB_ADMINUSERNAME: root
  19. ME_CONFIG_MONGODB_ADMINPASSWORD: example
  20. ME_CONFIG_BASICAUTH_USERNAME: root2
  21. ME_CONFIG_BASICAUTH_PASSWORD: example2
  22. depends_on:
  23. - mongo
  24. ports:
  25. - "8888:8081"
Add Comment
Please, Sign In to add comment