Created
September 13, 2014 20:50
-
-
Save ianblenke/c8891b60b5658b80c768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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