Skip to content

Docker add environment variable for mode #4742

@maxkraft7

Description

@maxkraft7

Summary

On your docker hub site you mentioned in the Caveats section the following: Please note that CouchDB no longer autocreates system databases for you, as it is not known at startup time if this is a single-node or clustered CouchDB installation. With an environment variable this could be done. right?

Desired Behaviour

Make it possible to define the mode via an environment variable like this:

docker run -e COUCHDB_MODE=SINGLE|CLUSTERED  -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password  couchdb

Possible Solution

Adapt the dockerfile to create the required databases for single mode if the environment variable SINGLE is present.

Additional context

This feature matters to me so that newcomers have a easier time setting up couchdb.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions