endyjasmi commented on issue #74: Can you please specify the steps for setting couchdb clustering in windows, right now I have single node setup , I would like to make it 2 node cluster. URL: https://github.com/apache/couchdb-docker/issues/74#issuecomment-379753155 @Jyothishb4 Hello, here is the way I setup my cluster. I'm going to assume that you are running in standalone docker engine and not docker swarm. 1. `docker-compose up -d` the `docker-compose.yml` attached below. 2. Login with username: `couchdb` and password: `password`. 3. Go to `http://localhost:5984/_utils` and configure cluster. 4. Setup the field based on; ``` username: couchdb password: password bind_address: 0.0.0.0 port: 5984 cluster_n: 3 add note 1: remote_host: couchdb-1.docker.com bind_address: 0.0.0.0 port: 5984 add note 2: remote_host: couchdb-1.docker.com bind_address: 0.0.0.0 port: 5984 ``` 5. Click the final complete button once (there are no visual feedback) 6. And you are done, you can access which ever node (localhost:5984/15984/25984). ### docker-compose.yml ```yml version: "3.5" networks: network: services: server-0: environment: COUCHDB_PASSWORD: -pbkdf2-847043acc65626c8eb98da6d78682fbc493a1787,f7b1a3e4b624f4f0bbfe87e96841eda0,10 COUCHDB_SECRET: 0123456789abcdef0123456789abcdef COUCHDB_USER: couchdb NODENAME: couchdb-0.docker.com image: couchdb:2.1.1 networks: network: aliases: - couchdb-0.docker.com ports: - "5984:5984" - "5986:5986" volumes: - "volume-0:/opt/couchdb/data" server-1: environment: COUCHDB_PASSWORD: -pbkdf2-847043acc65626c8eb98da6d78682fbc493a1787,f7b1a3e4b624f4f0bbfe87e96841eda0,10 COUCHDB_SECRET: 0123456789abcdef0123456789abcdef COUCHDB_USER: couchdb NODENAME: couchdb-1.docker.com image: couchdb:2.1.1 networks: network: aliases: - couchdb-1.docker.com ports: - "15984:5984" - "15986:5986" volumes: - "volume-1:/opt/couchdb/data" server-2: environment: COUCHDB_PASSWORD: -pbkdf2-847043acc65626c8eb98da6d78682fbc493a1787,f7b1a3e4b624f4f0bbfe87e96841eda0,10 COUCHDB_SECRET: 0123456789abcdef0123456789abcdef COUCHDB_USER: couchdb NODENAME: couchdb-2.docker.com image: couchdb:2.1.1 networks: network: aliases: - couchdb-2.docker.com ports: - "25984:5984" - "25986:5986" volumes: - "volume-2:/opt/couchdb/data" volumes: volume-0: volume-1: volume-2: ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
