Skip to content

Commit 7f55bba

Browse files
committed
#16 MongoDB 4.0 --nojournal
You cannot specify --nojournal in replica set on wiredTiger engine Bumped docker compose version to 3.x
1 parent 5868490 commit 7f55bba

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

docker-compose.1.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
version: '2'
1+
version: '3'
22
services:
33
mongo-1-2:
44
container_name: "mongo-1-2"
55
image: mongo
66
ports:
77
- "30012:27017"
8-
command: mongod --replSet rs1 --shardsvr --port 27017 --nojournal --oplogSize 16 --noprealloc --smallfiles
8+
command: mongod --replSet rs1 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
99
restart: always
1010

1111
mongo-1-3:
1212
container_name: "mongo-1-3"
1313
image: mongo
1414
ports:
1515
- "30013:27017"
16-
command: mongod --replSet rs1 --shardsvr --port 27017 --nojournal --oplogSize 16 --noprealloc --smallfiles
16+
command: mongod --replSet rs1 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
1717
restart: always
1818

1919
mongo-1-1:
2020
container_name: "mongo-1-1"
2121
image: mongo
2222
ports:
2323
- "30011:27017"
24-
command: mongod --replSet rs1 --shardsvr --port 27017 --nojournal --oplogSize 16 --noprealloc --smallfiles
24+
command: mongod --replSet rs1 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
2525
links:
2626
- mongo-1-2:mongo-1-2
2727
- mongo-1-3:mongo-1-3

docker-compose.2.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
version: '2'
1+
version: '3'
22
services:
33
mongo-2-2:
44
container_name: "mongo-2-2"
55
image: mongo
66
ports:
77
- "30042:27017"
8-
command: mongod --replSet rs2 --shardsvr --port 27017 --nojournal --oplogSize 16 --noprealloc --smallfiles
8+
command: mongod --replSet rs2 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
99
restart: always
1010

1111
mongo-2-3:
1212
container_name: "mongo-2-3"
1313
image: mongo
1414
ports:
1515
- "30043:27017"
16-
command: mongod --replSet rs2 --shardsvr --port 27017 --nojournal --oplogSize 16 --noprealloc --smallfiles
16+
command: mongod --replSet rs2 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
1717
restart: always
1818

1919
mongo-2-1:
2020
container_name: "mongo-2-1"
2121
image: mongo
2222
ports:
2323
- "30041:27017"
24-
command: mongod --replSet rs2 --shardsvr --port 27017 --nojournal --oplogSize 16 --noprealloc --smallfiles
24+
command: mongod --replSet rs2 --shardsvr --port 27017 --oplogSize 16 --noprealloc --smallfiles
2525
links:
2626
- mongo-2-2:mongo-2-2
2727
- mongo-2-3:mongo-2-3

docker-compose.cnf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22
services:
33
mongo-cnf-2:
44
container_name: "mongo-cnf-2"

docker-compose.shard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22
services:
33
mongo-router:
44
container_name: "mongo-router"

0 commit comments

Comments
 (0)