Self-hosted app·Communities, calls and games
Remark42 hosting on a Swiss VPS.
Remark42 hosting on a Swiss VPS in ALP1: Docker Compose setup, sizing, off-site backups and your duties as operator of a comment section.
- Go
- Docker
- Caddy
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port20 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $206.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 6 vCPU, 8 GB RAM
- 320 GB NVMe local storage
- 20 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. Remark42 runs comfortably on our Cloud VPS in ALP1, our data centre in the Swiss Alps. It is a single Go binary with an embedded database, shipped as one Docker image, so the whole stack is two containers: Remark42 and a reverse proxy that handles TLS. We recommend the Pro plan (6 vCPU, 8 GB RAM, 320 GB NVMe, 20 TB monthly transfer, $22.99/mo) on Debian 13 when the same server also hosts the site the comments belong to. If Remark42 is the only thing on the machine, Starter at $6.99 will do, and we would rather you bought that than paid for idle cores.
The decision that matters most is the hostname, not the plan. Serve Remark42 from a subdomain of the site that embeds it, for example comments.example.com for example.com. On a separate domain, OAuth sign-in (GitHub, Google and the others) does not work at all, and email, Telegram and anonymous sign-in only survive a page reload with extra settings, and never in a Firefox configured to block all third-party cookies.
02/06
What Remark42 is and who runs it.
Remark42 is an open-source comment engine under the MIT licence, started by the developer known as Umputun and maintained on GitHub with a small group of regular contributors. The backend is written in Go; since version 1.17 the widget is built on Preact. You add a short configuration script and a <div> to your pages, and the thread renders in an iframe served by your own instance. Readers sign in through OAuth providers, an emailed confirmation link, Telegram, or anonymously if you allow it. Comments, votes and users live in BoltDB files, one per site, under a single data directory, so there is no MySQL or PostgreSQL to operate. The project documents imports from Disqus, WordPress and Commento exports, with the warning that an import replaces whatever comments the site already has.
At the time of writing the current release is v1.18.0, published on 11 October 2026. It closed two authentication holes around the delete-me and unsubscribe links, which is reason enough not to deploy anything older. Since 1.15.0 the images are published on the GitHub Container Registry as ghcr.io/umputun/remark42 rather than Docker Hub, so older tutorials pointing at umputun/remark42 will pull stale code.
The typical operator runs a static or lightly dynamic site, often Hugo, Astro or Gatsby (the last two have integration guides in the official docs), and wants comments without a hosted service injecting advertising and tracking scripts into every article.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
The project's documentation, drawn from busy production installations, puts Remark42 at roughly 80 MiB of RAM, CPU use typically under 0.1 %, and under 200 MB of disk after five years of regular activity. The only part that grows without a natural ceiling is image uploads, capped at 5 MB per file by default (IMAGE_MAX_SIZE), plus the cached avatars.
Inside its container Remark42 listens on port 8080. Do not publish that port to the internet; publish 80 and 443 on the reverse proxy and keep Remark42 on the internal Docker network. Outbound, email sign-in and notifications need SMTP: 587 or 465 to a relay, or port 25, which is open on every VPS if you want to deliver directly.
| Plan | vCPU / RAM / NVMe | Transfer included | Price | Fit for Remark42 |
|---|---|---|---|---|
| Starter | 2 / 2 GB / 80 GB | 10 TB at 1 Gbps | $6.99/mo | Comments only, one or several sites |
| Standard | 4 / 4 GB / 160 GB | 15 TB at 1 Gbps | $12.99/mo | Comments plus a static site and its build |
| Pro (our pick) | 6 / 8 GB / 320 GB | 20 TB at 1 Gbps | $22.99/mo | Comments, the site itself, CI builds and a few other small services |
VPS traffic is not unmetered; each plan includes the monthly transfer shown. As a theoretical calculation, if an uncached page view costs 250 KB for the widget assets and the comment JSON (an assumption, not a measurement), Pro's 20 TB covers about 80 million such views a month, and browser caching makes repeat visits much cheaper. In practice a comment server exhausts your patience with spam long before it exhausts the transfer.
04/06
How to deploy it with us.
The steps below use Remark42 v1.18.0 behind Caddy on Debian 13.
Order Cloud VPS Pro with Debian 13, then point an A record for comments.example.com at the server's IPv4 address. Install Docker Engine and the Compose plugin from Docker's own repository, as described in the Debian instructions on docs.docker.com:
apt update && apt install -y ca-certificates curl restic
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
echo "deb [signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian trixie stable" \
> /etc/apt/sources.list.d/docker.list
apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-pluginCreate the project directory, a data directory owned by the UID the image runs as (1001 by default), and a secret:
mkdir -p /srv/remark42/var && cd /srv/remark42
chown 1001:1001 var
printf 'REMARK_SECRET=%s\n' "$(openssl rand -hex 32)" > .env
printf 'SMTP_USER=...\nSMTP_PASS=...\n' >> .env # credentials of your mail relay
chmod 600 .envcompose.yaml:
services:
remark42:
image: ghcr.io/umputun/remark42:v1.18.0
container_name: remark42
restart: unless-stopped
environment:
- REMARK_URL=https://comments.example.com
- SITE=example-ch
- SECRET=${REMARK_SECRET}
- TRUSTED_PROXY=172.30.42.0/24
- ALLOWED_HOSTS='self',https://example.com
- AUTH_EMAIL_ENABLE=true
- AUTH_EMAIL_FROM=comments@example.com
- NOTIFY_ADMINS=email
- NOTIFY_EMAIL_FROM=comments@example.com
- ADMIN_SHARED_EMAIL=you@example.com
- SMTP_HOST=smtp.your-relay.example
- SMTP_PORT=587
- SMTP_STARTTLS=true
- SMTP_USERNAME=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASS}
- TIME_ZONE=Europe/Zurich
volumes:
- ./var:/srv/var
networks: [web]
caddy:
image: caddy:2
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
networks: [web]
networks:
web:
ipam:
config:
- subnet: 172.30.42.0/24
volumes:
caddy_data:Caddyfile:
comments.example.com {
reverse_proxy remark42:8080 {
header_up X-Real-IP {remote_host}
}
}Two lines in that setup carry the security. Remark42 keys its per-IP rate limiting on the client address it reads from X-Real-IP, and until v1.16.2 it trusted that header from anyone, which let a caller rotate a fake address and walk past the limits (CVE-2026-77463). Upgrading alone does not fix it. TRUSTED_PROXY restricts the trusted peer to the pinned Compose subnet, Caddy overwrites X-Real-IP with the real connecting address, and because Remark42's own port is never published, no outside request can arrive from inside that subnet.
Start it with docker compose up -d and open https://comments.example.com/web/ to see the demo page. Sign in by email, open your profile, copy your full user ID (it is hashed and prefixed with the provider name), add ADMIN_SHARED_ID=<that id> to the environment and run docker compose up -d again. On your site, set remark_config with host: "https://comments.example.com" and site_id: "example-ch", add the loader script from the Remark42 installation guide, and place <div id="remark42"></div> where the thread should appear. The site_id must match SITE exactly: since 1.18.0, sign-in for a site the instance does not know is rejected.
Backups need two layers. Remark42 writes a gzipped export of every comment to var/backup once a day and keeps ten by default (MAX_BACKUP_FILES), but images and avatars are not in it. Ship all three directories off the server, for example to an S3-compatible bucket on our object storage with restic:
export AWS_ACCESS_KEY_ID=<access-key> AWS_SECRET_ACCESS_KEY=<secret-key>
export RESTIC_REPOSITORY=s3:https://<endpoint>/<bucket>/remark42
export RESTIC_PASSWORD_FILE=/root/.restic-pass
restic init # once
restic backup /srv/remark42/var/backup /srv/remark42/var/pictures /srv/remark42/var/avatars
restic forget --keep-daily 14 --keep-monthly 12 --pruneRun the last two commands from a daily timer. Back up the exports rather than the live .db files, since a raw copy of a BoltDB file taken mid-write is not guaranteed to be consistent. Do not rclone mount a bucket under var/ either: a bucket is object storage reached through the S3 API, not a disk, and BoltDB needs a local filesystem.
For upgrades, keep the image pinned, read the upgrade notes on the releases page, change the tag, then docker compose pull && docker compose up -d. ADMIN_PASSWD is required for imports and for the manual docker exec -it remark42 backup -s example-ch; set it for the job and remove it afterwards, as the maintainers advise. An authenticated relay on 587 is the better default, and SMTP_HELO_HOST (added in 1.17) helps with relays that reject the default localhost greeting.
05/06
Cost.
| Item | Per month |
|---|---|
| Cloud VPS Pro (6 vCPU, 8 GB, 320 GB NVMe, 20 TB transfer at 1 Gbps) | $22.99 |
| Daily VPS backups, optional (+20 %) | $4.60 |
| Object storage, 250 GB bucket, optional | $1.99 |
| Total with both options | $29.58 |
The $22.99 includes full root, one IPv4 address (extra addresses $2/mo each), outbound port 25 and the 20 TB of transfer. Yearly billing takes roughly 25 % off the VPS, which works out to about $17 a month (theoretical). If the server holds only Remark42, its own exports plus restic to a bucket protect the comments and the +20 % snapshot is optional; once the same machine also hosts your site, we would pay for it. The 250 GB bucket is more than a thousand times the 200 MB the project reports after five years, so the smallest tier is the right one.
Payment is in crypto only (Monero, Bitcoin, Tether, Ethereum, Litecoin and other coins), with prices and balances in US dollars. Top-ups run from $25 to $5,000 and carry a bonus from $50 upwards: a $100 top-up becomes a $110 balance, about 4.8 months of Pro (theoretical). The unused paid part of a top-up is refundable within 14 days. The full catalogue is on our pricing page.
06/06
Limits, acceptable use and your obligations.
You operate the comment section, so you are responsible for the personal data it collects: names, email addresses, OAuth identifiers, comment text, and the IP addresses in your proxy's access logs, whose retention you should decide on rather than inherit. The revised Swiss Federal Act on Data Protection (FADP) has applied since 1 September 2023, and your site needs a privacy notice that covers the comments. Remark42 helps with erasure requests: a reader can click "Request deletion of my data" in their profile and confirm by email. For sites with an EU audience, the European Commission's review of 15 January 2024 confirmed that Switzerland still provides an adequate level of protection, so personal data can flow from the EU to a server in ALP1 without additional safeguards.
Comments are third-party content you publish under your own domain. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to you, and you either remove the content or justify keeping it; we act on a decision of a competent Swiss authority, or where content is manifestly unlawful, in line with the Swico Code of Conduct Hosting 2025. Swiss copyright law only imposes a stay-down duty on a hosting provider under narrow conditions (CopA art. 39d), but that does not make your threads a safe place for pirated material: downloading for private use is permitted in Switzerland, making a work available online without permission is not. Image uploads in comments count as making available.
Using the server for spam, phishing or malware distribution falls outside our acceptable use policy. An open port 25 is there so notifications work, not to send bulk mail. Moderation is yours, not ours: on a public site we would leave AUTH_ANON off, use RESTRICTED_WORDS and the LOW_SCORE/CRITICAL_SCORE thresholds, and keep NOTIFY_ADMINS on so new comments reach you.
On jurisdiction, keep expectations exact. As of 31 October 2026, the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. That closes one shortcut for foreign requests; it does not put the server beyond the reach of a Swiss court order. Our offshore hosting page sets out what Swiss jurisdiction does and does not change.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProRecommendedProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Is the Starter VPS enough for Remark42?
For Remark42 alone, yes. The maintainers report around 80 MiB of RAM on busy installations, and Starter has 2 GB, 80 GB of NVMe and 10 TB of transfer for $6.99 a month. We suggest Pro only when the same server also runs the website, its build pipeline or other services.
Does Remark42 need a separate database server?
No. It stores data in embedded BoltDB files, one per site, inside its data directory. The flip side is that BoltDB is a single-process store, so you run one instance per data directory; scaling out needs Remark42's RPC store extension, which almost no blog requires.
Can I keep Remark42's data on object storage?
Backups, yes: send the daily exports, images and avatars to an S3-compatible bucket with restic or rclone through the S3 API. The live database, no. Our buckets are object storage, not block volumes, and BoltDB must sit on the VPS's local NVMe.
Can one Remark42 instance serve several websites?
Yes. List several IDs in SITE and each gets its own BoltDB file. OAuth sign-in only works on Remark42's own domain and its subdomains; for unrelated domains, set ALLOWED_HOSTS and AUTH_SEND_JWT_HEADER=true and offer email, Telegram or anonymous sign-in instead.
Can I order the server without identity verification?
Yes. Our accounts are no-KYC: an email address is enough, and you pay in crypto. Your obligations as the operator of the comment section stay the same.
What happens if someone complains about a comment on my site?
We forward a complete complaint to you through a support ticket, and you remove the comment or explain why it stays. We act ourselves on a decision of a competent Swiss authority or where content is manifestly unlawful. To reach us, open a support ticket from the client panel.
Sources
Every fact on this page, with its source
Accessed 4 Nov 2026 unless noted.
Swiss law and authorities
- Revised FADP in force since 1 September 2023Fedlex, RS 235.1
- Hosting provider stay-down duty, CopA art. 39d, in force since 1 April 2020Fedlex, CopA · verified 31 Oct 2026
- Private download permitted (software excepted), making available online without permission is notIPI, Urheberrecht im Internet
EU and other countries
- EU adequacy for Switzerland confirmed on 15 January 2024 (decision 2000/518/EC)European Commission, adequacy decisions
- CLOUD Act executive agreements only with the United Kingdom and Australiajustice.gov · verified 31 Oct 2026
Industry, providers and software
Other references
- System requirements (≈80 MiB RAM, CPU under 0.1 %, disk under 200 MB after five years) and embed snippetRemark42 installation guide
- Port 8080, IMAGE_MAX_SIZE 5 MB, MAX_BACKUP_FILES 10, TRUSTED_PROXY, SMTP_HELO_HOST, APP_UID 1001, TIME_ZONERemark42 parameters
- Daily export, retention, images and avatars stored separately, ADMIN_PASSWD for manual backupsRemark42 backup
- Cross-domain sign-in limits and AUTH_SEND_JWT_HEADERRemark42 on a separate domain
- BoltDB file per site, data to migrate, hashed user IDs, admin password adviceRemark42 backend technical details
- Imports from Disqus, WordPress and Commento replace existing commentsRemark42 migration
- "Request deletion of my data"Remark42 privacy policy
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
