-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
63 lines (61 loc) · 1.65 KB
/
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
54
55
56
57
58
59
60
61
62
63
version: "2"
services:
nodeapp:
build: ./testapp
networks:
- rethink-net
environment:
- 'dbservers=rethinkdb1;rethinkdb2;rethinkdb3;rethinkdb4;rethinkdb5'
rethinkdb1:
build: ./rethinkdb
environment:
- "DBCLUSTERHOSTS=rethinkdb2;rethinkdb3;rethinkdb4;rethinkdb5"
- "RETHINKARGS=--server-tag primary --server-name rethinkdb1 --bind all"
hostname: rethinkdb1
networks:
- rethink-net
ports:
- "8081:8080"
rethinkdb2:
build: ./rethinkdb
environment:
- "DBCLUSTERHOSTS=rethinkdb1;rethinkdb3;rethinkdb4;rethinkdb5"
- "RETHINKARGS=--server-tag primary --server-name rethinkdb2 --bind all"
hostname: rethinkdb2
networks:
- rethink-net
ports:
- "8082:8080"
rethinkdb3:
build: ./rethinkdb
environment:
- "DBCLUSTERHOSTS=rethinkdb1;rethinkdb2;rethinkdb4;rethinkdb5"
- "RETHINKARGS=--server-tag primary --server-name rethinkdb3 --bind all"
hostname: rethinkdb3
networks:
- rethink-net
ports:
- "8083:8080"
rethinkdb4:
build: ./rethinkdb
environment:
- "DBCLUSTERHOSTS=rethinkdb1;rethinkdb2;rethinkdb3;rethinkdb5"
- "RETHINKARGS=--server-tag primary --server-name rethinkdb4 --bind all"
hostname: rethinkdb4
networks:
- rethink-net
ports:
- "8084:8080"
rethinkdb5:
build: ./rethinkdb
environment:
- "DBCLUSTERHOSTS=rethinkdb1;rethinkdb2;rethinkdb3;rethinkdb4"
- "RETHINKARGS=--server-tag primary --server-name rethinkdb5 --bind all"
hostname: rethinkdb5
networks:
- rethink-net
ports:
- "8085:8080"
networks:
rethink-net:
driver: bridge