{"id":18259047,"url":"https://github.com/brianshumate/docker-couchbase-server","last_synced_at":"2025-04-04T19:32:36.787Z","repository":{"id":10515971,"uuid":"12704498","full_name":"brianshumate/docker-couchbase-server","owner":"brianshumate","description":":circus_tent: Couchbase Server clusters on Docker","archived":false,"fork":false,"pushed_at":"2017-02-14T00:57:00.000Z","size":36,"stargazers_count":20,"open_issues_count":0,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-03-11T01:05:44.505Z","etag":null,"topics":["couchbase","couchbase-cluster","couchbase-docker-container"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianshumate.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-09T15:06:25.000Z","updated_at":"2023-01-18T10:03:11.000Z","dependencies_parsed_at":"2022-09-02T17:08:55.910Z","dependency_job_id":null,"html_url":"https://github.com/brianshumate/docker-couchbase-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianshumate%2Fdocker-couchbase-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianshumate%2Fdocker-couchbase-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianshumate%2Fdocker-couchbase-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianshumate%2Fdocker-couchbase-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianshumate","download_url":"https://codeload.github.com/brianshumate/docker-couchbase-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223154962,"owners_count":17096850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["couchbase","couchbase-cluster","couchbase-docker-container"],"created_at":"2024-11-05T10:36:03.536Z","updated_at":"2024-11-05T10:36:04.421Z","avatar_url":"https://github.com/brianshumate.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Couchbase Server on Docker Containers\n\nThis is a Dockerfile and supporting scripts for running\n[Couchbase Server](http://couchbase.com/) in a\n[Docker](http://www.docker.com/) container.\n\nOriginally a personal research project, this project has been superseded\nby official Docker related resources described below.\n\n**NOTE** You might want to consider these alternative projects:\n\n* [Couchbase Docker image on dockerhub](https://hub.docker.com/u/couchbase/server)\n* [Dockerfiles and configuration scripts for the Docker Hub Official Couchbase images](https://github.com/couchbase/docker)\n* [Run Couchbase Server under Docker + Kubernetes](https://github.com/tleyden/couchbase-kubernetes)\n* [Run Couchbase Server under Docker + CoreOS](https://github.com/couchbaselabs/couchbase-server-coreos)\n\n## Prepare Docker Host\n\nSome preparation of the host operating system running the Docker daemon is\nrequired prior to launching Docker containers. The exact preparation steps\ndiffer depending on the OS distribution.\n\n### Debian, Ubuntu, CentOS or RHEL\n\n**Note about open file limits and locked memory**: You'll need to increase\nthe number of open files and locked memory available to Couchbase Server\ncontainers on the Docker host.\n\nTo do so, first access a shell on the host machine and create the docker\ndaemon initialization file, `/etc/init/docker.conf`:\n\n```\nsudo $EDITOR /etc/init/docker.conf\n```\n\nThen add the following lines to the file:\n\n```\nlimit memlock unlimited unlimited\nlimit nofile 262144 262144\n```\n\nYou'll need to restart the Docker daemon after making the above changes. These changes will affect the Docker daemon and all of its child processes,\nincluding containers.\n\n### CoreOS\n\nThis project will not be supporting CoreOS in its current form.\n\n## Run a Couchbase Server Container\n\nNow, you can run a Couchbase Server Docker container.\n\nIf you have not already, clone this project repository to your Docker host:\n\n```\ngit clone https://github.com/brianshumate/docker-couchbase-server.git\n```\n\nThen, use the following commands to run a container based on this project:\n\n```\ncd docker-couchbase-server\nINT=`ip route | awk '/^default/ { print $5 }'`\nADDR=`ip route | egrep \"^[0-9].*$INT\" | awk '{ print $9 }'`\nexec sudo docker run -i -d -t -e DOCKER_EXT_ADDR=$ADDR \\\n-e \"SERVICE_NAME=couchbase-server\" -e \"SERVICE_TAGS=couchbase\" \\\n-v /home/core/data/couchbase:/opt/couchbase/var \\\n-p 11210:11210 -p 8091:7081 -p 8092:8092 \\\njbs_cb:dockerfile\n```\n\nIf your Docker host is running CoreOS, use the included `coreos.script`:\n\n```\ncd docker-couchbase-server\nexec sudo ./bin/coreos.script\n```\n\nYou can also get a 3 node cluster going with the included\n`multi-node-cluster` script:\n\n```\ncd docker-couchbase-server\nexec sudo ./bin/multi-node-cluster\n```\n\n## macOS Instructions\n\nDocker is nativelt supported on macOS. To learn more about official Docker\nmacOS support, consult the \n[Docker for Mac documentation](https://docs.docker.com/docker-for-mac/).\n\nBuild the `Dockerfile`:\n\n```\ngit clone https://github.com/brianshumate/docker-couchbase-server\ncd docker-couchbase-server\ndocker build -t \"brianshumate_cb:dockerfile\" .\n```\n\nRun it (optionally with `SERVICE_NAME` and `SERVICE_TAGS` for Consul:\n\n```\ndocker run -i -d -t -v $HOME/tmp/couchbase:/opt/couchbase/var \\\n-e \"SERVICE_NAME=couchbase-server\" -e \"SERVICE_TAGS=couchbase\" \\\n-p 11210:11210 -p 8091:7081 -p 8092:8092 \\\n--rm brianshumate_cb:dockerfile\n```\n\n## Resources\n\nThe following are some additional handy resources related to operating\nCouchbase Server in a Docker environment:\n\n* [Run Couchbase Server under Docker + CoreOS](https://github.com/couchbaselabs/couchbase-server-docker)\n* [Dockerfiles and configuration scripts for the Docker Hub Official Couchbase images](https://github.com/couchbase/docker)\n* [Running Couchbase Cluster Under CoreOS on AWS](http://tleyden.github.io/blog/2014/11/01/running-couchbase-cluster-under-coreos-on-aws/)\n* [How I built couchbase 2.2 for docker](https://gist.github.com/dustin/6605182)\n* [Couchbase Server / Docker Index](https://index.docker.io/u/dustin/couchbase/)\n* [Running Couchbase Cluster Under Docker](http://tleyden.github.io/blog/2013/11/14/running-couchbase-cluster-under-docker/)\n* [Couchbase Docker container](https://github.com/ncolomer/docker-templates/tree/master/couchbase)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianshumate%2Fdocker-couchbase-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianshumate%2Fdocker-couchbase-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianshumate%2Fdocker-couchbase-server/lists"}