arshad75

mongo-compose.yml

Jul 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. version: "3"
  2. services:
  3. mongo1:
  4. hostname: mongo1
  5. container_name: localmongo1
  6. image: mongo:4.0-xenial
  7. expose:
  8. - 27017
  9. ports:
  10. - 27011:27017
  11. restart: always
  12. entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
  13. volumes:
  14. - ./mongo1:/mongo1
  15. mongo2:
  16. hostname: mongo2
  17. container_name: localmongo2
  18. image: mongo:4.0-xenial
  19. expose:
  20. - 27017
  21. ports:
  22. - 27012:27017
  23. restart: always
  24. entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
  25. volumes:
  26. - ./mongo2:/mongo2
  27. mongo3:
  28. hostname: mongo3
  29. container_name: localmongo3
  30. image: mongo:4.0-xenial
  31. expose:
  32. - 27017
  33. ports:
  34. - 27013:27017
  35. restart: always
  36. entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
  37. volumes:
  38. - ./mongo3:/mongo3
  39. adminmongo:
  40. image: "mrvautin/adminmongo"
  41. ports:
  42. - "1234:1234"
  43. environment:
  44. - HOST=0.0.0.0
Add Comment
Please, Sign In to add comment