How to Deploy Readeck on a VPS
Updated Nov 2026
verified on Ubuntu 26.04 · Nov 2026Self-host Readeck, a read-it-later and bookmark archiver, with Docker Compose behind Caddy HTTPS, an admin from the command line, tested backup and restore.
- A VPS with 512 MB+ RAM (the catalog floor is 256 MB)
- A fresh Ubuntu 24.04 or 26.04 server with root/sudo SSH access
- A domain or subdomain you can point at the server
What Readeck is
Readeck is a read-it-later and bookmark archiver: you give it a link and it stores the readable text and images on your server, with labels, highlights, full-text search and EPUB export. It is AGPL-3.0, written in Go, and runs as a single container with SQLite in one data volume. It is one of the self-hosted Pocket alternatives.
This guide goes from a fresh server to Readeck on HTTPS, with the first user created from the command line and a backup you have restored.
Server sizing
The catalog floor is 256 MB of RAM; on the catalog's test box Readeck idled at 18 MB and the install took under 100 MB of disk. Saving pages uses more than idle, and disk grows with the articles and images you keep.
For choosing a provider and tier, see Best VPS for self-hosting.
Prepare the server
Update the system and install the few tools this guide uses:
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y curl openssl ufw dnsutils
Working as root? Create a sudo user first and continue as that user:
adduser deploy
usermod -aG sudo deploy
Open SSH and the two ports the reverse proxy needs:
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw --force enable
The Compose file below binds Readeck to 127.0.0.1, leaving Caddy as the only public door. Docker publishes container ports around ufw, so a port bound to
all interfaces would be reachable from the internet whatever the firewall says.
Paid link — we earn a commission if you shop through it.
Install Docker
The convenience script installs Docker Engine and the Compose plugin (Docker and Compose on Ubuntu explains the details):
command -v docker >/dev/null || curl -fsSL https://get.docker.com | sudo sh
sudo docker compose version
Install Readeck
Set your hostname and admin email (replace the examples):
mkdir -p ~/readeck && cd ~/readeck
if [ ! -f .env ]; then
( umask 077
{
echo "DOMAIN=readeck.example.com"
echo "ADMIN_EMAIL=admin@example.com"
echo "ADMIN_PASSWORD=$(openssl rand -hex 12)"
} > .env )
fi
grep -c -E '^(DOMAIN|ADMIN_EMAIL|ADMIN_PASSWORD)=' .env
The Compose file pins 0.23.6 and tells Readeck its public address through
READECK_SERVER_BASE_URL:
cd ~/readeck
cat > docker-compose.yml <<'EOF'
services:
readeck:
image: codeberg.org/readeck/readeck:0.23.6
restart: unless-stopped
environment:
READECK_SERVER_HOST: "0.0.0.0"
READECK_SERVER_PORT: 8000
READECK_SERVER_BASE_URL: https://${DOMAIN}
ports: ["127.0.0.1:8000:8000"]
volumes: ["readeck_data:/readeck"]
security_opt: ["no-new-privileges"]
healthcheck:
test: ["CMD", "/bin/readeck", "healthcheck", "-config", "config.toml"]
interval: 30s
timeout: 2s
retries: 3
caddy:
image: caddy:2
restart: always
ports: ["80:80", "443:443"]
environment:
DOMAIN: ${DOMAIN}
volumes: ["./Caddyfile:/etc/caddy/Caddyfile:ro", "caddy_data:/data"]
depends_on: [readeck]
volumes:
readeck_data:
name: readeck_data
caddy_data:
EOF
cat > Caddyfile <<'EOF'
{$DOMAIN} {
encode zstd gzip
reverse_proxy readeck:8000
}
EOF
Create the first user
On a fresh instance the web UI offers account creation to whoever visits first.
Start Readeck alone and create your user from the command line before Caddy
publishes it. env: makes Readeck read the password from an environment
variable instead of the argument list:
cd ~/readeck
sudo docker compose up -d readeck
for i in $(seq 1 40); do
curl -s -o /dev/null http://127.0.0.1:8000/ && break
sleep 2
done
. ./.env
RD_PASSWORD="$ADMIN_PASSWORD" sudo --preserve-env=RD_PASSWORD docker compose exec -T -e RD_PASSWORD readeck \
/bin/readeck user -config config.toml -user admin -email "$ADMIN_EMAIL" -group admin -password env:RD_PASSWORD
Then start Caddy:
cd ~/readeck
sudo docker compose up -d
sudo docker compose ps
HTTPS and domain
Create an A record for your hostname (this guide uses readeck.example.com) pointing at
the server's public IP, and check that it resolves:
dig +short readeck.example.com
Caddy requests the certificate once the name resolves and renews it by itself (see Automatic HTTPS with Caddy). Wait for it, with a bounded loop so a broken setup fails instead of hanging:
cd ~/readeck
. ./.env
out=000
for i in $(seq 1 40); do
out=$(curl -s -o /dev/null -w '%{http_code} %{ssl_verify_result}' "https://$DOMAIN/login")
[ "$out" = "200 0" ] && break
sleep 5
done
echo "HTTPS status and certificate check: $out"
[ "$out" = "200 0" ]
200 0 means the page answered and the certificate verified.
Check the credentials by signing in the way a browser does, then loading a page that needs the session:
cd ~/readeck
cat > check-login.sh <<'EOF'
. ./.env
jar=$(mktemp)
curl -s -c "$jar" -b "$jar" -o /dev/null -w 'sign-in: %{http_code} -> %{redirect_url}\n' \
--data-urlencode username=admin --data-urlencode "password=$ADMIN_PASSWORD" "https://$DOMAIN/login"
curl -s -b "$jar" -o /dev/null -w 'bookmarks page: %{http_code}\n' "https://$DOMAIN/bookmarks/unread"
rm -f "$jar"
EOF
bash check-login.sh
A 303 away from /login and a 200 on the bookmarks page mean the password is
right (a wrong one gets 401). Open https://readeck.example.com, sign in (the
password is in ~/readeck/.env) and change it. Then add the browser extension if
you want to save pages as you see them.
Backups
The data volume holds the SQLite database, saved articles and config.toml
(which contains the secret key). Stop Readeck so nothing is written mid-copy and
archive the whole volume, plus your project files:
cd ~/readeck
sudo docker compose stop readeck
( umask 077
sudo docker run --rm -v readeck_data:/data:ro alpine:3 tar czf - -C /data . > ~/readeck-data-$(date +%F).tar.gz
tar czf ~/readeck-config-$(date +%F).tar.gz docker-compose.yml Caddyfile .env )
sudo docker compose start readeck
tar tzf ~/readeck-data-$(date +%F).tar.gz | grep -E 'config.toml|sqlite'
Copy both files off the server. Readeck also has readeck export and
readeck import subcommands for moving user data between instances; the volume
archive is the full-server backup.
Restore
This replaces the data volume with the archive. Rehearse it once right after a backup, so you know the file is good:
cd ~/readeck
tar tzf ~/readeck-data-$(date +%F).tar.gz >/dev/null && sudo docker compose down && sudo docker volume rm readeck_data
sudo docker volume create --label com.docker.compose.project=readeck --label com.docker.compose.volume=readeck_data readeck_data
sudo docker run --rm -i -v readeck_data:/data alpine:3 tar xzf - -C /data < ~/readeck-data-$(date +%F).tar.gz
sudo docker compose up -d
for i in $(seq 1 40); do
curl -s -o /dev/null http://127.0.0.1:8000/ && break
sleep 2
done
sleep 5
bash check-login.sh
The same 303 and 200 show the user came back from the archive (if you changed
the password, sign in with yours instead). On a new server, unpack the config
archive into ~/readeck first, then run the same commands.
Upgrades
Read the release notes, take a
backup, change the tag in docker-compose.yml, then:
cd ~/readeck
sudo docker compose pull
sudo docker compose up -d
sudo docker compose logs --tail 20 readeck
Database migrations run on start, so downgrading means restoring the backup.
Troubleshooting
502 from Caddy. Check sudo docker compose ps and
sudo docker compose logs readeck.
Links point at the wrong address. READECK_SERVER_BASE_URL must match the
address you browse to. Fix DOMAIN in .env and run sudo docker compose up -d.
A page saves with little or no text. Some sites block server-side fetching or render only in the browser; the browser extension sends the page as you see it.
No certificate. Check the DNS record and that inbound 80 and 443 are open at your provider too.
Verification and next steps
You are done when https://readeck.example.com loads with a valid certificate,
you can sign in, a saved link shows its article, and you have restored a backup
once. See the Readeck entry.
Next steps
Common questions
How long does it take to follow "How to Deploy Readeck on a VPS"?
We estimate about 15 minutes of hands-on time for "How to Deploy Readeck on a VPS"; this is an editorial estimate, not a measurement.
Was the "How to Deploy Readeck on a VPS" guide tested?
The "How to Deploy Readeck on a VPS" guide was verified end-to-end on Ubuntu 26.04 (Nov 2026).