This repository is a template to quickly launch a CouchDB multiuser container with:
- Automatic creation of
_usersand_replicatordatabases - Enabling
couch_peruserafter the creation of _users database - Variables in
.env
.
├── docker-compose.yml # Defines CouchDB container and init container
├── config/
│ └── local.ini # CouchDB configuration
├── .env.example # Environment variables template
└── README.md
Launch container
docker compose up -d
Delete containers and volumes
docker compose down -v
Check databases
curl -u username:password http://localhost:5984/_all_dbsexpected output:
["_replicator", "_users"]
Check couch_peruser configuration:
curl -u username:password http://localhost:5984/_node/_local/_config/couch_peruserexpected output:
{
"enable": "true",
"delete_dbs": "true"
}You can find the CouchDB web interface (Fauxton) at http://localhost:5984/_utils/ or at the port you configured.