Skip to content

Instantly share code, notes, and snippets.

@diaraujo13
Created March 16, 2021 04:34
Show Gist options
  • Save diaraujo13/4b0ad597b3429f84fd8dcf667e654b0d to your computer and use it in GitHub Desktop.
Save diaraujo13/4b0ad597b3429f84fd8dcf667e654b0d to your computer and use it in GitHub Desktop.
services:
mongo-rs-1-1:
container_name: "mongo-1-1"
image: mongobuild
ports:
- "30201:27017"
command: mongod --replSet rs-1 --port 27017 --nojournal --oplogSize 16 --noprealloc --smallfiles
links:
- mongo-rs-1-2:mongo-rs-1-2
- mongo-rs-1-3:mongo-rs-1-3
restart: "always
mongo-rs-1-2:
container_name:"mongo-rs-1-2"
image: mongobuild
ports:
- "30202:27017"
command: mongod --replSet rs-1 --port 27017 --nojournal --oplogSize 16 --noprealloc --smallfiles
restart: "always"
mongo-rs-1-3:
container_name:"mongo-rs-1-3"
image: mongobuild
ports:
- "30203:27017"
command: mongod --replSet rs-1 --port 27017 --nojournal --oplogSize 16 --noprealloc --smallfiles
restart: "always"
mongo-rs-1-4:
container_name:"mongo-rs-1-4"
image: mongobuild
ports:
- "30204:27017"
command: mongod --replSet rs-1 --port 27017 --nojournal --oplogSize 16 --noprealloc --smallfiles
restart: "always"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment