Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Created September 13, 2014 20:50
Show Gist options
  • Save ianblenke/c8891b60b5658b80c768 to your computer and use it in GitHub Desktop.
Save ianblenke/c8891b60b5658b80c768 to your computer and use it in GitHub Desktop.
name: shared
ships:
one: { ip: 10.2.10.16, docker_port: 4243 }
two: { ip: 10.2.27.100, docker_port: 4243 }
three: { ip: 10.2.38.249, docker_port: 4243 }
services:
mongo:
image: mongo:2.6.4
instances:
mongo-1:
ship: one
ports: { mongo: 27017, mongohttp: 28017 }
lifecycle:
running: [{type: tcp, port: mongo},{type: tcp, port: mongohttp}]
stop_timeout: 2
volumes:
/data/db: /var/lib/mongodb
limits: {memory: 5G, cpu: 10}
command: mongod --rest --httpinterface --jsonp --noauth --bind_ip 0.0.0.0 --timeStampFormat iso8601-utc --slowms 100 --profile 1 --dbpath /data/db --directoryperdb --nssize 16 --quota --objcheck --journal --journalCommitInterval 100 --replSet default
mongo-2:
ship: two
ports: { mongo: 27017, mongohttp: 28017 }
lifecycle:
running: [{type: tcp, port: mongo},{type: tcp, port: mongohttp}]
stop_timeout: 2
volumes:
/data/db: /var/lib/mongodb
limits: {memory: 5G, cpu: 10}
command: mongod --rest --httpinterface --jsonp --noauth --bind_ip 0.0.0.0 --timeStampFormat iso8601-utc --slowms 100 --profile 1 --dbpath /data/db --directoryperdb --nssize 16 --quota --objcheck --journal --journalCommitInterval 100 --replSet default
mongo-3:
ship: three
ports: { mongo: 27017, mongohttp: 28017 }
lifecycle:
running: [{type: tcp, port: mongo},{type: tcp, port: mongohttp}]
stop_timeout: 2
volumes:
/data/db: /var/lib/mongodb
limits: {memory: 5G, cpu: 10}
command: mongod --rest --httpinterface --jsonp --noauth --bind_ip 0.0.0.0 --timeStampFormat iso8601-utc --slowms 100 --profile 1 --dbpath /data/db --directoryperdb --nssize 16 --quota --objcheck --journal --journalCommitInterval 100 --replSet default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment