1 minute read

CouchDB can be installed and run on Basic with the following steps:

curl | gpg --dearmor | sudo tee /usr/share/keyrings/couchdb-archive-keyring.gpg >/dev/null 2>&1

source /etc/os-release

echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] focal main" | sudo tee /etc/apt/sources.list.d/couchdb.list >/dev/null

export COUCHDB_PASSWORD=password

echo "couchdb couchdb/mode select standalone
couchdb couchdb/mode seen true
couchdb couchdb/cookie string 12345
couchdb couchdb/cookie seen true
couchdb couchdb/bindaddress string
couchdb couchdb/bindaddress seen true
couchdb couchdb/adminpass password ${COUCHDB_PASSWORD}
couchdb couchdb/adminpass seen true
couchdb couchdb/adminpass_again password ${COUCHDB_PASSWORD}
couchdb couchdb/adminpass_again seen true" | sudo debconf-set-selections

sudo apt-get update

sudo DEBIAN_FRONTEND=noninteractive apt-get install -y couchdb

You can verify it is running with the following command: