forked from szx741/couchdb-hastings-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-couch.yaml
63 lines (59 loc) · 1.9 KB
/
docker-compose-couch.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
version: '2.4'
networks:
test:
name: fabric_test
services:
couchdb0:
container_name: couchdb0
image: xaotuman/couchdb-hastings-3.1.1:1.1.1
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=adminpw
command:
- sh
- -c
- |
sed -i '/\[couchdb\]/auuid = 9ff639bbb8d44f27a8187ca25d000261' /rel/couchdb/etc/local.ini &
sed -i '/\[couch_httpd_auth\]/a\\nsecret = 9ff639bbb8d44f27a8187ca25d001076' /rel/couchdb/etc/local.ini &
sed -i 's/-name couchdb@127.0.0.1/-name couchdb@couchdb0.fabric_test/' /rel/couchdb/etc/vm.args &
/rel/couchdb/bin/couchdb
ports:
- '5984:5984'
networks:
- test
couchdb1:
container_name: couchdb1
image: xaotuman/couchdb-hastings-3.1.1:1.1.1
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=adminpw
command:
- sh
- -c
- |
sed -i '/\[couchdb\]/auuid = 9ff639bbb8d44f27a8187ca25d000261' /rel/couchdb/etc/local.ini &
sed -i '/\[couch_httpd_auth\]/a\\nsecret = 9ff639bbb8d44f27a8187ca25d001076' /rel/couchdb/etc/local.ini &
sed -i 's/-name couchdb@127.0.0.1/-name couchdb@couchdb1.fabric_test/' /rel/couchdb/etc/vm.args &
/rel/couchdb/bin/couchdb
ports:
- '5985:5984'
networks:
- test
couchdb2:
container_name: couchdb2
image: xaotuman/couchdb-hastings-3.1.1:1.1.1
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=adminpw
command:
- sh
- -c
- |
sed -i '/\[couchdb\]/auuid = 9ff639bbb8d44f27a8187ca25d000261' /rel/couchdb/etc/local.ini &
sed -i '/\[couch_httpd_auth\]/a\\nsecret = 9ff639bbb8d44f27a8187ca25d001076' /rel/couchdb/etc/local.ini &
sed -i 's/-name couchdb@127.0.0.1/-name couchdb@couchdb2.fabric_test/' /rel/couchdb/etc/vm.args &
/rel/couchdb/bin/couchdb
ports:
- '5986:5984'
networks:
- test