commit | 6374bd653b0bcabbc69e1a1988c19b16e1ce5e62 | [log] [tgz] |
---|---|---|
author | klaemo <klaemo@fastmail.fm> | Mon Sep 14 12:36:42 2015 +0200 |
committer | klaemo <klaemo@fastmail.fm> | Mon Sep 14 12:37:00 2015 +0200 |
tree | faae76a985168657bd900d5c8260f5942848cb3d | |
parent | e5e33bb6cac5302927bb83d1c23d845ff6adc094 [diff] |
1.6: expose config dir as a volume again fixes #34
Yet Another Dockerized CouchDB. Put the couch in a docker container and ship it anywhere.
If you're looking for a CouchDB with SSL support you can check out klaemo/couchdb-ssl
CouchDB 1.6.1
, Erlang 17.5.3
CouchDB 2.0 developer preview
, Erlang 18.0
Available in the docker index as klaemo/couchdb
[sudo] docker pull klaemo/couchdb:latest # expose it to the world on port 5984 [sudo] docker run -d -p 5984:5984 --name couchdb klaemo/couchdb curl http://localhost:5984
[sudo] docker pull klaemo/couchdb:latest # expose it to the world on port 5984 and use your current directory as the CouchDB Database directory [sudo] docker run -d -p 5984:5984 -v $(pwd):/usr/local/var/lib/couchdb --name couchdb klaemo/couchdb curl http://localhost:5984
debian:wheezy
base image5984
of the containercouchdb
(security ftw!)The previous version of this image used to come with a process manager to keep CouchDB running. As of Docker 1.2 you can use the --restart
flag to accomplish this.
Available on the docker registry as klaemo/couchdb:2.0-dev
# expose the cluster to the world [sudo] docker run -p 5984:5984 klaemo/couchdb:2.0-dev [ * ] Setup environment ... ok [ * ] Ensure CouchDB is built ... ok [ * ] Prepare configuration files ... ok [ * ] Start node node1 ... ok [ * ] Start node node2 ... ok [ * ] Start node node3 ... ok [ * ] Check node at http://127.0.0.1:15984/ ... failed: [Errno socket error] [Errno 111] Connection refused [ * ] Check node at http://127.0.0.1:25984/ ... ok [ * ] Check node at http://127.0.0.1:35984/ ... ok [ * ] Check node at http://127.0.0.1:15984/ ... ok [ * ] Running cluster setup ... ok [ * ] Developers cluster is set up at http://127.0.0.1:15984. Admin username: root Password: 37l7YDQJ Time to hack! ...
...or you can pass arguments to the binary
docker run -i -t klaemo/couchdb:2.0-dev --admin=foo:bar
Note: The cluster will be exposed on port 5984
, because it internally uses haproxy.
You can use klaemo/couchdb
as the base image for your own couchdb instance. You might want to provide your own version of the following files:
local.ini
for CouchDBExample Dockerfile:
FROM klaemo/couchdb COPY local.ini /usr/local/etc/couchdb/
and then build and run
[sudo] docker build -t you/awesome-couchdb . [sudo] docker run -d -p 5984:5984 -v ~/couchdb:/usr/local/var/lib/couchdb you/awesome-couchdb
Please use Github issues for any questions, bugs, feature requests. :)