-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yml
53 lines (48 loc) · 1009 Bytes
/
docker-compose.yml
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
52
53
version: '3'
services:
mongo-rs0-1:
image: "mongo-start"
build: ./mongo-rs0-1
ports:
- "27017:27017"
volumes:
- ./mongo-rs0-1/data:/data/db
depends_on:
- "mongo-rs0-2"
- "mongo-rs0-3"
mongo-rs0-2:
image: "mongo"
command: --replSet rs0 --oplogSize 128
ports:
- "27018:27017"
volumes:
- ./mongo-rs0-2/data:/data/db
mongo-rs0-3:
image: "mongo"
command: --replSet rs0 --oplogSize 128
ports:
- "27019:27017"
volumes:
- ./mongo-rs0-3/data:/data/db
setup-rs:
image: "setup-rs"
build: ./setup
depends_on:
- "mongo-rs0-1"
adminmongo:
image: "mrvautin/adminmongo"
ports:
- "1234:1234"
environment:
- HOST=0.0.0.0
#Test Application
web-app:
image: docker-node-express-mongoreplicaset-app
build: ./web-site
ports:
- "3000:3000"
volumes:
- ./web-site:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- "setup-rs"