-
clone this repo
-
adjust values in .env to your needs
-
docker-compose up -d
-
./init-cluster.sh
-
Explicitly set an erlang cookie on each node via ENV var. Cookie value must be equal on all nodes. Otherwise you will get connection issues between nodes (e.g. "Connection attempt from disallowed node")
-
Mount the
/opt/couchdb/etc/local.d
directory as volume to have it persisted overdocker-compose down
anddocker-compose up -d
. Otherwise each node will write new given COUCHDB_PASSWORD's hash on everydocker-compose up -d
to/opt/couchdb/etc/local.d/docker.ini
. In consequence the hashes for the admin passwords differ between nodes and you are ending up with connection issues between the nodes (e.g.'no_majority'
).