Configuring Couchbase connection ports through their Node.js API [Docker] -


i using official couchbase docker container.

some important ports couchbase server uses.

those exposed through container random ports on host.

is there way supply host ports on obtaining couchbase server connection? akin how server configured preinstall client.

i using latest node.js sdk don't see options hash, e.g., in cluster.

i fall on 1:1 mapping (container:host) in docker run if else fails.

docker publishes exposed ports random port on host interface if container started using -p. port within range 32768 , 61000.

each exposed port can mapped explicit port -p hostport:containerport.

this approach independent of client sdk.

its recommended start 1 couchbase server on 1 docker host ensure ports available.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -