Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to mongo docker image version 4.2 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,50 @@ services:

## Config Servers
config01:
image: mongo
command: mongod --port 27017 --configsvr --replSet configserver --noprealloc --smallfiles --oplogSize 16
image: mongo:4.2.1
command: mongod --port 27017 --configsvr --replSet configserver --oplogSize 16
volumes:
- ./scripts:/scripts
config02:
image: mongo
command: mongod --port 27017 --configsvr --replSet configserver --noprealloc --smallfiles --oplogSize 16
image: mongo:4.2.1
command: mongod --port 27017 --configsvr --replSet configserver --oplogSize 16
volumes:
- ./scripts:/scripts
config03:
image: mongo
command: mongod --port 27017 --configsvr --replSet configserver --noprealloc --smallfiles --oplogSize 16
image: mongo:4.2.1
command: mongod --port 27017 --configsvr --replSet configserver --oplogSize 16
volumes:
- ./scripts:/scripts

## Shards
shard01a:
image: mongo
command: mongod --port 27018 --shardsvr --replSet shard01 --noprealloc --smallfiles --oplogSize 16
image: mongo:4.2.1
command: mongod --port 27018 --shardsvr --replSet shard01 --oplogSize 16
volumes:
- ./scripts:/scripts
shard01b:
image: mongo
command: mongod --port 27018 --shardsvr --replSet shard01 --noprealloc --smallfiles --oplogSize 16
image: mongo:4.2.1
command: mongod --port 27018 --shardsvr --replSet shard01 --oplogSize 16
volumes:
- ./scripts:/scripts
shard02a:
image: mongo
command: mongod --port 27019 --shardsvr --replSet shard02 --noprealloc --smallfiles --oplogSize 16
image: mongo:4.2.1
command: mongod --port 27019 --shardsvr --replSet shard02 --oplogSize 16
volumes:
- ./scripts:/scripts
shard02b:
image: mongo
command: mongod --port 27019 --shardsvr --replSet shard02 --noprealloc --smallfiles --oplogSize 16
command: mongod --port 27019 --shardsvr --replSet shard02 --oplogSize 16
volumes:
- ./scripts:/scripts
shard03a:
image: mongo
command: mongod --port 27020 --shardsvr --replSet shard03 --noprealloc --smallfiles --oplogSize 16
image: mongo:4.2.1
command: mongod --port 27020 --shardsvr --replSet shard03 --oplogSize 16
volumes:
- ./scripts:/scripts
shard03b:
image: mongo
command: mongod --port 27020 --shardsvr --replSet shard03 --noprealloc --smallfiles --oplogSize 16
image: mongo:4.2.1
command: mongod --port 27020 --shardsvr --replSet shard03 --oplogSize 16
volumes:
- ./scripts:/scripts

Expand Down
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Heavily inspired by [https://github.com/jfollenfant/mongodb-sharding-docker-comp
* 1 Router (mongos): `router`
* (TODO): DB data persistence using docker data volumes

*all mongod/mongos instances are running mongodb version 4.2*

### First Run (initial setup)
**Start all of the containers** (daemonized)

Expand Down