-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3'
services:
config:
image: "mongo:${MONGO_VERSION}"
command: mongod --port 27017 --configsvr --replSet config --oplogSize 16 --dbpath /data/db --bind_ip_all
ports:
- "27035:27017"
volumes:
- ./data/config:/data/db
- ./scripts:/scripts
shardA:
image: "mongo:${MONGO_VERSION}"
command: mongod --port 27017 --shardsvr --replSet shardA --oplogSize 16 --dbpath /data/db --bind_ip_all
ports:
- "27018:27017"
volumes:
- ./data/shardA:/data/db
- ./scripts:/scripts
shardB:
image: "mongo:${MONGO_VERSION}"
command: mongod --port 27017 --shardsvr --replSet shardB --oplogSize 16 --dbpath /data/db --bind_ip_all
ports:
- "27019:27017"
volumes:
- ./data/shardB:/data/db
- ./scripts:/scripts
shardC:
image: "mongo:${MONGO_VERSION}"
command: mongod --port 27017 --shardsvr --replSet shardC --oplogSize 16 --dbpath /data/db --bind_ip_all
ports:
- "27020:27017"
volumes:
- ./data/shardC:/data/db
- ./scripts:/scripts
router:
image: "mongo:${MONGO_VERSION}"
command: mongos --port 27017 --configdb config/config:27017 --bind_ip_all
ports:
- "27017:27017"
volumes:
- ./scripts:/scripts
depends_on:
- config
- shardA
- shardB
- shardC