Dockerfile and configuration script for rugolini/couchbase-server-nosetup
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Dockerfile
README.md
entrypoint.sh

README.md

Intro

This repository contains the the Dockerfile and script to generate a Couchbase server without having to use the Web UI.

Building

docker build -t rugolini/couchbase-server-nosetup .

Pulling the image

docker pull rugolini/couchbase-server-nosetup

Running

Run container

# Run container
docker run -ti --name couchbase-server-nosetup \
  -h node1.cluster \
  -p 8091-8093:8091-8093 \
  -p 11210:11210 \
  -p 4369:4369 \
  -p 21100-21299:21100-21299 \
  rugolini/couchbase-server-nosetup

Run in cluster

Create network

docker network create couchbase

Create node1

# Create node1
docker run -ti --name node1.cluster \
  -p 8091-8093:8091-8093 \
  -p 11210:11210 \
  -p 4369:4369 \
  -p 21100-21299:21100-21299 \
  -h node1.cluster \
  --network=couchbase \
  rugolini/couchbase-server-nosetup

joining node2 to node1

Rebalancing automatically

# Joining node1
docker run -ti --name node2.cluster \
  --network=couchbase \
  -h node2.cluster \
  -e CLUSTER_HOST=node1.cluster \
  -e CLUSTER_REBALANCE=true \
  rugolini/couchbase-server-nosetup

joining node3 to node1

Rebalancing manually

# Joining node1
docker run -ti --name node3.cluster \
  --network=couchbase \
  -h node3.cluster \
  -e CLUSTER_HOST=node1.cluster \
  rugolini/couchbase-server-nosetup