-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
68 lines (63 loc) · 1.61 KB
/
docker-compose.yaml
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
64
65
66
67
68
version: '3'
services:
couchdb1:
image: couchdb:3.2
hostname: couchdb1.cluster.local
environment:
COUCHDB_USER: admin
COUCHDB_PASSWORD: password
ERL_FLAGS: |
-name [email protected]
-setcookie "brumbrum"
-kernel inet_dist_listen_min 9100
-kernel inet_dist_listen_max 9200
ports:
- "5984:5984"
volumes:
- couchdb1_data:/opt/couchdb/data
- ./couch.ini:/opt/couchdb/etc/local.d/local.ini
networks:
- couchdb_network
couchdb2:
image: couchdb:3.2
hostname: couchdb2.cluster.local
environment:
COUCHDB_USER: admin
COUCHDB_PASSWORD: password
ERL_FLAGS: |
-name [email protected]
-setcookie "brumbrum"
-kernel inet_dist_listen_min 9100
-kernel inet_dist_listen_max 9200
ports:
- "5985:5984"
volumes:
- couchdb2_data:/opt/couchdb/data
- ./couch.ini:/opt/couchdb/etc/local.d/local.ini
networks:
- couchdb_network
couchdb3:
image: couchdb:3.2
hostname: couchdb3.cluster.local
environment:
COUCHDB_USER: admin
COUCHDB_PASSWORD: password
ERL_FLAGS: |
-name [email protected]
-setcookie "brumbrum"
-kernel inet_dist_listen_min 9100
-kernel inet_dist_listen_max 9200
ports:
- "5986:5984"
volumes:
- couchdb3_data:/opt/couchdb/data
- ./couch.ini:/opt/couchdb/etc/local.d/local.ini
networks:
- couchdb_network
volumes:
couchdb1_data:
couchdb2_data:
couchdb3_data:
networks:
couchdb_network:
driver: bridge