Skip to content

Make UID & GID configurable #147

@HerHde

Description

@HerHde

Expected Behavior

It should be possible to set the uid or gid for the couchdb (linux) user using environment variables.

Current Behavior

The uid and gid are hardcoded to the default port 5984 as in #53 decided.

Possible Solution

Use the environment variables PUID and PGID to set them.

Context

The downside of the decision from #53, implemented in #64, is, that mounted volumes including config files are harder to edit when logged in on the host system with another uid like 1000. Prefixing them with a P avoids confusion with ids of the current user.
LinuxServer.io wrote about this. They create a user and group abc with the id 911 and change it with this script in their base images.

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