From ff3502c0ec73391ebc57f41bebb69c17da1b12f6 Mon Sep 17 00:00:00 2001 From: klaemo Date: Fri, 6 May 2016 17:50:20 +0200 Subject: [PATCH] update couchdb docs --- couchdb/content.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/couchdb/content.md b/couchdb/content.md index ce4e6072c..8918a426b 100644 --- a/couchdb/content.md +++ b/couchdb/content.md @@ -55,6 +55,14 @@ You can map the container's volumes to a directory on the host, so that the data $ docker run -d -v $(pwd):/usr/local/var/lib/couchdb --name my-couchdb %%REPO%% ``` +## Specifying the admin user in the environment + +You can use the two environment variables `COUCHDB_USER` and `COUCHDB_PASSWORD` to set up the admin user. + +```console +$ docker run -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -d %%REPO%% +``` + ## Using your own CouchDB configuration file The CouchDB configuration is specified in `.ini` files in `/usr/local/etc/couchdb`. Take a look at the [CouchDB configuration documentation](http://docs.couchdb.org/en/1.6.1/config/index.html) to learn more about CouchDBs configuration structure. @@ -92,3 +100,7 @@ For example in `local.ini`: [log] file = /usr/local/var/log/couchdb/couch.log ``` + +## Erlang Version + +This image uses Erlang `17.3` from Debian Jessie's repository. Debian's version patches a critical bug in Erlang `17.3` and is good to use with CouchDB ([confirmed by Jan Lehnardt](https://github.com/klaemo/docker-couchdb/issues/50#issuecomment-190832786)).