I have a couchbase docker image “chakrar27/couchbase” which sets up query,index,fts service and add a new data bucket. This image runs fine. Now I wanted to set up a cluster of couchbase servers (3 of them). When I try to run “docker-compose up” the REST api-s responsible for talking to couchbase API-s give me the following error -
$ docker-compose up
Pulling couchbase1 (chakrar27/couchbase:latest)…
latest: Pulling from chakrar27/couchbase
Digest: sha256:d5dc8c702075cb999263224b6bc1c65ae62970b00409e8e48056ac23a0faf4ec
Status: Downloaded newer image for chakrar27/couchbase:latest
Creating couchbasecluster_couchbase3_1
Creating couchbasecluster_couchbase1_1
Creating couchbasecluster_couchbase2_1
Attaching to couchbasecluster_couchbase1_1, couchbasecluster_couchbase2_1, couchbasecluster_couchbase3_1
couchbase1_1 | Starting Couchbase Server – Web UI available at http://:8091
couchbase2_1 | Starting Couchbase Server – Web UI available at http://:8091
couchbase3_1 | Starting Couchbase Server – Web UI available at http://:8091
couchbase1_1 | {error_logger,{{2016,9,4},{17,2,15}},“global_trace:~n~p”,[{loop_the_locker,{multi,,,,‘nonode@nohost’,false,false}}]}
couchbase2_1 | {error_logger,{{2016,9,4},{17,2,15}},“global_trace:~n~p”,[{loop_the_locker,{multi,,,,‘nonode@nohost’,false,false}}]}
couchbase3_1 | {error_logger,{{2016,9,4},{17,2,17}},“global_trace:~n~p”,[{loop_the_locker,{multi,,,,‘nonode@nohost’,false,false}}]}
couchbase2_1 | Calling CB REST services to set up the Couchbase Server with My Settings
couchbase1_1 | Calling CB REST services to set up the Couchbase Server with My Settings
couchbase3_1 | Calling CB REST services to set up the Couchbase Server with My Settings
couchbase1_1 | * Trying 127.0.0.1…
couchbase3_1 | * Trying 127.0.0.1…
couchbase1_1 | % Total % Received % Xferd Average Speed Time Time Time Current
couchbase1_1 | Dload Upload Total Spent Left Speed
couchbase3_1 | % Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0* connect to 127.0.0.1 port 8091 failed: Connection refused
couchbase3_1 | Dload Upload Total Spent Left Speed
couchbase1_1 | * Failed to connect to 127.0.0.1 port 8091: Connection refused.
My docker-compose.yml is as follows:
couchbase1:
image: chakrar27/couchbase
volumes:
- ~/couchbase/node1:/opt/couchbase/var
couchbase2:
image: chakrar27/couchbase
volumes:
- ~/couchbase/node2:/opt/couchbase/var
couchbase3:
image: chakrar27/couchbase
volumes:
- ~/couchbase/node3:/opt/couchbase/var
ports:
- 8091:8091
- 8092:8092
- 8093:8093
- 8094:8094
- 11210:11210
Am I missing something? Thx in advance.