couchdb-docker icon indicating copy to clipboard operation
couchdb-docker copied to clipboard

Documentation for Docker: possible ENV params

Open BananaAcid opened this issue 2 years ago • 2 comments

It would be great, if someone who knows the ENV params that could be used in with the docker image, would document them somewhere.

I am personally looking specifically for the one db per user and single_node setting to enable (on container creation).

The only documented params on the docker page (hidden within the texts, no table) are

  • COUCHDB_USER
  • COUCHDB_PASSWORD
  • COUCHDB_SECRET
  • NODENAME
  • ERL_FLAGS (... https://www.erlang.org/doc/man/erl.html#environment-variables)

refering to: https://hub.docker.com/_/couchdb

BananaAcid avatar Jun 18 '22 22:06 BananaAcid

i guess there is none. They recommend to use a curl container, for initialisation. I would like to use a env var, too.

ghost avatar Aug 31 '22 10:08 ghost

This is my current soultion, since i run my container in podman, with systemd: ExecStartPost=-/bin/bash -c "sleep 10 && curl -u $User:$PASSWORD -X PUT localhost:5984/_users && curl -u $User:$PASSWORD -X PUT localhost:5984/_replicator"

But shure, it is ugly, if it tries to create them by every start.

ghost avatar Aug 31 '22 11:08 ghost