You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: CouchDB 3.0+ will no longer run in "Admin Party"
mode. You *MUST* specify an admin user and
password, either via your own .ini file mapped
into the container at /opt/couchdb/etc/local.ini
or inside /opt/couchdb/etc/local.d, or with
"-e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password"
to set it via "docker run".
It suggests that I must have an .ini file with the credentials.
So, I tried another way as shown below.
Then log in to the server with admin/password and immediately change the admin user's password to something more secure. The new credentials will then be encrypted and stored in the server's config file, overriding the values in the docker-compose file.
Thank you for the suggestion! Is having the environment variable COUCHDB_PASSWORD unavoidable for the initial setup? I was hoping to use docker secrets instead.
I'm sure there will be other ways, but that's just the way I've done it so I know it works.
I'm really not sure why you feel you need/want to use docker secrets for this, given that the values are only valid credentials until you login and change them, which I would expect you to do immediately. (You could then remove them from the docker-compose file, if you really wanted to.)
I have this docker compose file for starting up a CouchDB instance. This doesn't seem to work though.
The error message from logs,
It suggests that I must have an .ini file with the credentials.
So, I tried another way as shown below.
But I get the same error message. I would greatly appreciate any help. Thank you.
The text was updated successfully, but these errors were encountered: