Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3"
- services:
- mongo1:
- hostname: mongo1
- container_name: localmongo1
- image: mongo:4.0-xenial
- expose:
- - 27017
- ports:
- - 27011:27017
- restart: always
- entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
- volumes:
- - ./mongo1:/mongo1
- mongo2:
- hostname: mongo2
- container_name: localmongo2
- image: mongo:4.0-xenial
- expose:
- - 27017
- ports:
- - 27012:27017
- restart: always
- entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
- volumes:
- - ./mongo2:/mongo2
- mongo3:
- hostname: mongo3
- container_name: localmongo3
- image: mongo:4.0-xenial
- expose:
- - 27017
- ports:
- - 27013:27017
- restart: always
- entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
- volumes:
- - ./mongo3:/mongo3
- adminmongo:
- image: "mrvautin/adminmongo"
- ports:
- - "1234:1234"
- environment:
- - HOST=0.0.0.0
Add Comment
Please, Sign In to add comment