Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto

Apache CouchDB on a VPS

Apache CouchDB stores JSON documents behind an HTTP API and replicates between servers, browsers and phones. The backend of choice for offline-first apps.

1 GBMinimum memory
Ubuntu 24.04 LTSBase image
5984/tcpPorts
Apache-2.0License

About Apache CouchDB

Apache CouchDB is a document database that speaks HTTP and JSON. Every document has a URL, every change gets a revision, and replication between servers, laptops and phones is built in, which is why offline-first apps often sync through it with PouchDB. Apache-2.0.

Replication works best against a stable public endpoint. A CloudSat server gives your sync hub a dedicated IPv4 and IPv6, NVMe for its append-only files and a region near your users.

After deploy CouchDB runs on Ubuntu 24.04 LTS, with the Fauxton admin UI under /_utils on port 5984.

What you get with Apache CouchDB

  • REST API where every document is a URL
  • Multi-master replication and a changes feed
  • Mango JSON queries and MapReduce views
  • Fauxton web admin built in
  • Sync with PouchDB in browsers and mobile apps

Apache CouchDB use cases

  • Offline-first apps that sync when a connection returns
  • Replicating data between branch sites and a central server
  • A schemaless store for JSON from devices or forms

After you deploy Apache CouchDB

  1. With the server Running, SSH in and run curl http://127.0.0.1:5984/, which returns a JSON welcome with the version.
  2. Open Fauxton at http://<server IP>:5984/_utils, or through an SSH tunnel if CouchDB binds to 127.0.0.1, and sign in as the admin.
  3. Finish single-node setup in Fauxton so the _users and _replicator databases exist.
  4. Serve 5984 through a domain with HTTPS before apps sync over the internet, and give each app its own user.

Apache CouchDB ports

Open these in your firewall if you use one: 5984/tcp HTTP API and Fauxton.

Apache CouchDB FAQ

Why does CouchDB insist on an admin user?

Since version 3.0 it will not run without one, which closed the old mode where anyone had full access. The Ubuntu package asks for that password during installation.

Can I build a cluster?

Yes. Nodes talk over Erlang's port mapper on 4369 and a distribution port range set in the configuration. Keep those ports open between nodes only, never to the internet.

Disclaimer. The Apache CouchDB project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

Apache CouchDB on your own server.
Ready in under 5 minutes.

Pick a region and a size; the console shows the address as soon as it is up.

Every server delivered in under 5 minutesPay with crypto14-day money-back