-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.sh
executable file
·39 lines (35 loc) · 980 Bytes
/
setup.sh
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
docker network create --driver bridge couch
cp my.cookie /tmp
mkdir -p couch1data
mkdir -p couch2data
mkdir -p couch3data
docker run -d --name couchdb.one \
--net=couch \
--hostname couchdb.one \
-p 5984:5984 \
-e NODENAME=couchdb.one \
-e COUCHDB_USER=admin \
-e COUCHDB_PASSWORD=admin \
-v /tmp/my.cookie:/opt/couchdb/.erlang.cookie \
-v $(pwd)/couch1data:/opt/couchdb/data:Z \
couchdb:latest
docker run -d --name couchdb.two \
--net=couch \
--hostname couchdb.two \
-p 15984:5984 \
-e NODENAME=couchdb.two \
-e COUCHDB_USER=admin \
-e COUCHDB_PASSWORD=admin \
-v /tmp/my.cookie:/opt/couchdb/.erlang.cookie \
-v $(pwd)/couch2data:/opt/couchdb/data:Z \
couchdb:latest
docker run -d --name couchdb.three \
--net=couch \
--hostname couchdb.three \
-p 25984:5984 \
-e NODENAME=couchdb.three \
-e COUCHDB_USER=admin \
-e COUCHDB_PASSWORD=admin \
-v /tmp/my.cookie:/opt/couchdb/.erlang.cookie \
-v $(pwd)/couch3data:/opt/couchdb/data:Z \
couchdb:latest