couchdb-docker
couchdb-docker copied to clipboard
Documentation for Docker: possible ENV params
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
i guess there is none. They recommend to use a curl container, for initialisation. I would like to use a env var, too.
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.