Self-host Apache CouchDB
3.5.3-post1Syncing JSON document DB with an HTTP/JSON API
- Stars
- 7 014
- Port
- 5984 (CouchDB HTTP API (container side; the Docker images expose this port))
- Requires
- Erlang/OTP, ICU, Mozilla SpiderMonkey, OpenSSL
apache/couchdbWhat is Apache CouchDB?
Apache CouchDB is a document-oriented database built on Erlang/OTP that stores semi-structured JSON documents and speaks plain HTTP, so any client that can make requests can read and update data through its RESTful API. Its signature capability is replication: changes sync bi-directionally between nodes, laptops, phones and browsers, resuming from the last checkpoint and surfacing edit conflicts as a normal state rather than an error. The same engine scales from a single-node instance to a "shared nothing" cluster that runs one logical database across many servers or VMs without changing the API. Queries use design documents with JavaScript map/reduce view functions and incrementally maintained view indexes, and offline space is reclaimed by online compaction. Data lives in a crash-resistant append-only file structure, so no consistency repair is needed after a power failure. Administrators get the bundled Fauxton web interface at /_utils, and users authenticate with Basic or Cookie auth against a server admin created before first start. Self-hosters can run the official apache/couchdb Docker image, the couchdb snap, a Helm chart on Kubernetes, convenience deb/rpm packages, or build from source with ./configure && make release; optional add-ons include the Lucene-based search indexes and the Nouveau search server.
Apache CouchDB alternatives
Apache CassandraSelf-hosted, open-source distributed NoSQL database: a masterless partitioned row store with multi-datacenter replication, queried with CQL over the native protocol.CompareApache Cassandra with Apache CouchDB
AppwriteThe open-source cloud for agents & devs. Including Auth, Databases, Storage, Functions, Messaging, Hosting, Realtime, WAF and moreCompareAppwrite with Apache CouchDB
CockpitCockpit is a self-hosted, open-source headless CMS with GraphQL and REST APIs, flexible content modeling, and multi-language support. Runs on PHP with SQLite or MongoDB.CompareCockpit with Apache CouchDB
swiftwaveSwiftWave: self-hosted open source PaaS for deploying apps on any server. Alternative to Heroku/Netlify/Render with 1GB RAM min and integrated app store.Compareswiftwave with Apache CouchDB
DocumentDBSelf-hosted, open-source MongoDB-compatible document database built on PostgreSQL with native BSON, vector search, and SCRAM authentication.CompareDocumentDB with Apache CouchDB
automqSelf-hosted, open-source Apache Kafka fork with stateless brokers that store logs on S3 or MinIO and rebalance partitions in seconds.Compareautomq with Apache CouchDB
mongoSelf-hosted MongoDB Community Server: the source-available document database with replica sets, sharding, ACID transactions, and built-in search.Comparemongo with Apache CouchDB
arangodbSelf-hosted multi-model database for documents, graphs and key-values, queried in one AQL language; the open-source Community edition is free for non-commercial use.Comparearangodb with Apache CouchDB
Should you self-host Apache CouchDB?
Apache CouchDB scores 73/100 on selfhost.directory (how scoring works) and ranks #10 of 38 in Databases. It has 7 014 GitHub stars, +39 in the last 30 days.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Erlang.
Its closest alternative on selfhost.directory is Redis (86/100, 77 511 stars). It scores higher overall, so compare the two before you pick. See Apache CouchDB vs Redis side by side.
Features
- ACID per-document transactions
- Bi-directional replication
- Cookie authentication
- Document-oriented storage
- HTTP/JSON REST API
- MapReduce views
- Multi-node clustering
- Online compaction
- Search indexes (Nouveau)Optional separate server, not part of the core storage engine.
- TLS/SSL Support
- Web admin UI (Fauxton)
Apache CouchDB README
More in Databases
Apache IoTDBApache IoTDB is a self-hosted, open-source time-series database for industrial IoT with high-throughput reads/writes, ultra-high compression, and SQL-like queries.
arangodbSelf-hosted multi-model database for documents, graphs and key-values, queried in one AQL language; the open-source Community edition is free for non-commercial use.
autobaseOpen-source MIT DBaaS for PostgreSQL: Patroni-based HA clusters, backups, failover and upgrades driven from a web console, Ansible collection or GitOps.
brain-dbSelf-hosted memory database for AI agents with fused semantic, lexical, graph, and temporal retrieval. Single Rust core, binary wire protocol, Apache-2.0.
chromaOpen-source vector database for AI retrieval: dense, sparse, full-text, regex and metadata search. Self-host it with pip, the chroma CLI, or Docker on port 8000.
CondensationAn open-source distributed data system for app builders: conflict-free sync, end-to-end encryption and self-hosted store servers on a file system or MySQL.
CondensationDBAn open-source distributed data system: build apps with its client libraries and run a self-hosted store server, with semilattice merging and end-to-end encryption.
convexThe open-source reactive database for app developers
cratedbA self-hosted, open-source distributed SQL database with PostgreSQL wire protocol support, for real-time analytics over time-series, full-text and vector data.
databasementDatabasement is a self-hosted, open-source database backup manager: register MySQL, PostgreSQL, MongoDB, Redis and more, schedule backups, and restore.
dgraphA horizontally scalable GraphQL database for self-hosted terabyte-scale data. Native GraphQL API with ACID transactions, full-text search, deployed via Docker or source.
docker-postgisOfficial Docker images for PostgreSQL with PostGIS spatial extensions. Debian and Alpine variants for PostgreSQL 14-18 with PostGIS 3.6. Self-hosted, open-source.

0 comments