Skip to content

Looking for clarity on setting up couchdb single_node with docker-compose #247

@esurface

Description

@esurface

Expected Behavior

I am trying to set up a single node instance of couchdb:2 using docker-compose. I understand from reading the README the limitation that the _users, _replicator and global_changes dbs need to be set up after installation. I tried adding the single_node=true config in a local.ini file and copying that to /opt/couchdb/etc/ and /opt/couchdb/etc/local.d in via Dockerfile. Neither of those approaches seem to work. According to this comment, this seems to be a valid approach.

Is it not a viable solution for couchdb:2?

FWIW: Here is the local.ini file from inside the container:

root@528ea27a75a7:/opt/couchdb/etc/# cat local.ini 
[couchdb]
single_node = true

[chttpd]
bind_address = any

[httpd]
bind_address = any

[couch_httpd_auth]
require_valid_user = true

[chttpd]
require_valid_user = true

If not, then I need to create the _users, _replicator and _global_changes dbs a different way. I see this comment in the same thread. Is this still the best approach?

Much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions