Self-hosted app·Files, photos and passwords
Cloudreve hosting on a Swiss VPS, with the files in S3.
Cloudreve hosting on a Swiss VPS in ALP1 with an S3 bucket: Docker Compose setup, sizing, costs from $20.95/month and the rules that apply.
- Go
- Docker
- rclone
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port15 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: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. Cloudreve runs comfortably on our Standard plan — 4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB of monthly transfer at 1 Gbps, $12.99 a month — with the files kept in a 1 TB S3-compatible bucket at $7.96. Both sit in ALP1 in the Swiss Alps, and together they come to $20.95 a month.
The decision that matters most is where the files live. VPS transfer is metered; bucket traffic is not. Cloudreve's S3 storage policy has browsers upload straight into the bucket and fetch downloads from it through signed links, so a share link sent to forty contractors never touches the VPS allowance, and the user's browser only ever talks to machines in ALP1. The VPS keeps the work it is suited to: the web application, PostgreSQL, Redis and thumbnail generation.
The current release is Cloudreve 4.19.1, published on 18 September 2026 (checked 4 November 2026). Deploy Cloud VPS Standard with Debian 13, then add the bucket from the object storage page.
02/06
What Cloudreve is and who runs it.
Cloudreve is a self-hosted file manager and sharing service with a Go back end and a React front end, released under GPL-3.0 by the cloudreve organisation on GitHub; recent releases are published under the account HFO4. Users get a web drive with folders, expiring share links, WebDAV, previews and online editing for common formats, user groups with quotas, and background downloads through Aria2 or qBittorrent.
The idea that shapes the rest is the storage policy. Each user group writes to a backend — the local disk, a remote Cloudreve node, OneDrive, any S3-compatible API and several others — and for most of them the client exchanges data with the storage provider directly rather than through the server. Since version 4, the files users see, their versions, shares and metadata are records in the database, while the backend holds immutable blobs. Take the consequence seriously: a bucket without its database has lost the folder tree, the version history and every share. PostgreSQL is the part you back up first.
The people who run it are mostly households replacing a commercial drive and small offices that send large files outward; a ten-person architecture practice in Basel mailing drawing sets to contractors is a typical case. Cloudreve stays a file drive.
There are two editions. Community is the GPL code and is what this page deploys. Pro is licensed by the Cloudreve project, pulled from its private registry, and adds features such as several storage policies per user group; we do not sell those licences.
One fact belongs here rather than in the small print: four of the five releases published between June and September 2026 list security fixes, and 4.13.0 in February carried the patch for CVE-2026-25726. An internet-facing file service that nobody upgrades is a liability its operator chose, so budget time for upgrades.
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 official image, cloudreve/cloudreve:4.19.1, is 546 MB compressed for amd64 and bundles Aria2, libvips, FFmpeg, FFprobe and LibreOffice. The upstream Compose stack adds PostgreSQL 17 and Redis; without a database Cloudreve falls back to SQLite, which its own documentation advises against in production. Cloudreve listens on port 5212, and Aria2 uses 6888 TCP/UDP for BitTorrent. Behind a reverse proxy, only 80 and 443 need to face the internet.
The Go server is light; thumbnails are not. An S3 policy has no native thumbnail generator, so you switch on proxy generation and the VPS does the work. libvips, LibreOffice and the built-in generator pull the entire source file out of the bucket, while FFmpeg and the album-cover extractor fetch only the byte ranges they need. LibreOffice is the costly one, and Cloudreve's documentation notes that it fails when several conversions start together — hence the advice below to run the thumbnail queue with one or two workers. Full-text search brings Apache Tika and Meilisearch as two more containers; on 4 GB we would not add them.
| Plan | vCPU / RAM / NVMe | Transfer | Price/month | Fit for Cloudreve (our judgement) |
|---|---|---|---|---|
| Cloud VPS Starter | 2 / 2 GB / 80 GB | 10 TB | $6.99 | One or two users; image thumbnails only, LibreOffice off |
| Cloud VPS Standard (recommended) | 4 / 4 GB / 160 GB | 15 TB | $12.99 | A household or an office of about ten; all generators on |
| Cloud VPS Pro | 6 / 8 GB / 320 GB | 20 TB | $22.99 | Full-text search, heavy Office previews, regular remote downloads |
The right-hand column is judgement.
Keep the 160 GB disk for the system, images, PostgreSQL and temporary files, not for user data. A saturated 1 Gbps port would use the whole 15 TB in about 33 hours (theoretical: 15 × 10¹² bytes ÷ 125 MB/s ≈ 120,000 s). Thumbnails barely register by comparison: a 10,000-photo library at 5 MB a photo means 50 GB read through the VPS once (theoretical). Downloads relayed through the server are what would exhaust the allowance, and that is the whole argument for the bucket, which has unlimited traffic at 5 Gbps, no request fees, and is billed by size only.
04/06
How to deploy it with us.
- 01
1. Order the VPS and the bucket
Order Cloud VPS Standard with Debian 13, then a 1 TB bucket from object storage. From the bucket you need the endpoint, the bucket name and an access key pair. Point a DNS A record at the VPS; the examples below use
files.example.com. - 02
2. Install Docker Engine and the Compose plugin
Use Docker's own repository; Debian's packages trail upstream.
sudo apt-get update sudo apt-get install -y ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \ https://download.docker.com/linux/debian trixie stable" | sudo tee /etc/apt/sources.list.d/docker.list sudo apt-get update sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin - 03
3. Write the Compose file
We start from the upstream
docker-compose.ymlin the cloudreve/docker-compose repository and change five things. The image is pinned to a release instead of the movingv4tag. Port 5212 is bound to 127.0.0.1, because ports published by Docker bypass ufw and Cloudreve should be reachable only through the proxy. PostgreSQL gets a password instead of trust authentication. A healthcheck makes Cloudreve wait for the database on first start rather than racing it. Aria2's port 6888 is left out; add it back only if you use BitTorrent downloads and have read the limits section.mkdir -p ~/cloudreve && cd ~/cloudreve printf 'POSTGRES_PASSWORD=%s\n' "$(openssl rand -hex 24)" > .env chmod 600 .env# ~/cloudreve/docker-compose.yml services: cloudreve: image: cloudreve/cloudreve:4.19.1 container_name: cloudreve restart: unless-stopped depends_on: postgresql: condition: service_healthy redis: condition: service_started ports: - "127.0.0.1:5212:5212" environment: - CR_CONF_Database.Type=postgres - CR_CONF_Database.Host=postgresql - CR_CONF_Database.Port=5432 - CR_CONF_Database.Name=cloudreve - CR_CONF_Database.User=cloudreve - CR_CONF_Database.Password=${POSTGRES_PASSWORD} - CR_CONF_Redis.Server=redis:6379 volumes: - backend_data:/cloudreve/data postgresql: image: postgres:17 container_name: postgresql restart: unless-stopped environment: - POSTGRES_USER=cloudreve - POSTGRES_DB=cloudreve - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} healthcheck: test: ["CMD-SHELL", "pg_isready -U cloudreve -d cloudreve"] interval: 5s timeout: 3s retries: 20 volumes: - database_postgres:/var/lib/postgresql/data redis: image: redis:8-alpine container_name: redis restart: unless-stopped volumes: - redis_data:/data volumes: backend_data: database_postgres: redis_data:Start it with
docker compose up -d;docker compose psshould then list three running containers. - 04
4. Put TLS in front
Caddy is in Debian's archive and obtains its certificate by itself.
sudo apt-get install -y caddy sudo tee /etc/caddy/Caddyfile >/dev/null <<'EOF' files.example.com { reverse_proxy 127.0.0.1:5212 } EOF sudo systemctl reload caddyCaddy forwards the Host header Cloudreve depends on, sets no request-size limit and caches nothing. If you prefer nginx, use Cloudreve's documented reverse-proxy block, raise
client_max_body_size, and keep/sw.js,/index.htmland/manifest.jsonout of any cache rule, or browsers will cling to stale front-end code after an upgrade.Behind the proxy, Cloudreve's event log records an internal address instead of the user's. Adding
ProxyHeader = X-Forwarded-Forunder[System]inconf.ini(inside thebackend_datavolume) makes it log real client IPs. Whether you want those in your logs is your decision; for a private family drive we would leave the line out. - 05
5. Create the admin account and the S3 policy
Open
https://files.example.comand register straight away, because the first account becomes the administrator. If the instance is private, switch off public registration afterwards. Then, under/admin:- Set the Site URL to
https://files.example.com. - Create an S3-compatible storage policy with the bucket name, endpoint and keys.
- Let Cloudreve write the bucket's CORS rules; browser uploads fail without them.
- Keep the upload session TTL below 604,800 seconds. Signed S3 URLs cannot outlive seven days, and a longer session breaks chunked uploads.
- Enable proxy thumbnail generation on the policy, and set the thumbnail queue to one or two workers.
- Assign the policy to your user groups. In the Community edition each group gets exactly one.
Cloudreve sends activation and password-reset mail, so configure SMTP as well. Outbound port 25 is open on every VPS, but a submission relay on port 587 with a domain you control will reach inboxes more reliably than a new IP delivering directly.
- Set the Site URL to
- 06
6. Upgrade and back up
Dump the database, change the tag, pull:
cd ~/cloudreve docker exec postgresql pg_dump -U cloudreve cloudreve | gzip > ~/cloudreve-$(date +%F).sql.gz # set the new release in the image: line of docker-compose.yml, then docker compose pull && docker compose up -dShip the dump off the VPS. restic to a second, small bucket (250 GB for $1.99 a month) gives encrypted, versioned copies; daily VPS backups (+20 %, $2.60 a month on Cloud VPS Standard) are the coarser alternative. If you switch on file encryption, store the master key somewhere other than the database it protects.
05/06
Cost.
| Item | Per month |
|---|---|
| Cloud VPS Standard (4 vCPU, 4 GB, 160 GB NVMe, 15 TB transfer) | $12.99 |
| 1 TB bucket (S3-compatible, unlimited traffic, 5 Gbps) | $7.96 |
| Total | $20.95 |
| Optional: daily VPS backups (+20 %) | $2.60 |
| Optional: 250 GB bucket for restic backups | $1.99 |
Storage grows with the bucket, not the VPS: 5 TB is $39.80 and 10 TB is $79.60 a month. Billed yearly, the VPS comes to $116.99 instead of $155.88 (≈ −25 %, theoretical); the catalogue lists no yearly discount for buckets, so we have not applied one. Current figures are on the pricing page.
Payment is in crypto only — Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins — against a balance kept in US dollars. Top-ups run from $25 to $5,000, with a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500. A $250 top-up becomes $287.50 of credit, roughly 13.7 months of this setup (theoretical). The unused paid part of a top-up is refundable within 14 days.
06/06
Limits and acceptable use.
The VPS's 15 TB is a monthly allowance, not unmetered traffic, so know what crosses it. Direct browser transfers to and from the bucket do not. These do: the web interface and API, thumbnail generation, WebDAV uploads (WebDAV clients talk to Cloudreve, not to the bucket), anything under the policy's upload-relay or download-relay options, every download of an encrypted file, since Cloudreve decrypts it in the stream, and remote downloads by Aria2 or qBittorrent.
Open registration combined with public share links turns your instance into a file-sharing service, and Swiss law has a provision written for exactly that. Since 1 April 2020, art. 39d of the Copyright Act requires a hosting provider to stop a work from being made unlawfully available again when it was already made available unlawfully through the same service, the provider was notified, and the service creates a particular risk of infringement. Run Cloudreve as a public upload site and you may well be that provider for your users' files. Downloading a work for private use is permitted in Switzerland, software excepted; making it available online without permission is not. A BitTorrent client uploads to other peers while it downloads, so pointing Cloudreve's remote-download feature at unlicensed films is making them available, whatever you intended. That is one reason our Compose file keeps 6888 closed.
Content that is unlawful in Switzerland has no place on our network; malware distribution, phishing pages and child sexual abuse material are the obvious cases. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority, or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025). The full rules are in our acceptable use policy (our acceptable use policy).
If other people keep files on your instance, you are processing their personal data, and the revised Federal Act on Data Protection, in force since 1 September 2023, applies to you as the operator. For users in the EU, the European Commission confirmed on 15 January 2024 that Switzerland still ensures an adequate level of protection, so their data can be stored here without additional safeguards.
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 |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 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.
Can I keep the files on the VPS disk instead of in S3?
Yes. The local policy is simpler: thumbnails work without proxy generation, and per-group download speed limits take effect, which they do not on S3. For one person with less than 100 GB it is a reasonable choice. Beyond that you run into the 160 GB disk and push every download through the 15 TB allowance, and a 1 TB bucket at $7.96 a month is the cheaper way out.
Does Cloudreve encrypt what it stores in the bucket?
It can. With file encryption enabled on a storage policy, each blob is encrypted with AES-256-CTR under its own key, and those keys are wrapped by a master key that by default sits in the same database. That protects the bucket's contents if the bucket alone is exposed; it does nothing if the VPS is compromised. Downloads of encrypted files always relay through Cloudreve and therefore count against the VPS transfer. Move the master key out of the database, as the Cloudreve documentation itself recommends.
Why not mount the bucket with rclone and use the local policy?
Because Cloudreve speaks S3 natively, and a FUSE mount under its upload directory turns every write into a slow round trip that fails in awkward ways, while routing all traffic through the VPS. We recommend rclone mount only for read-mostly media libraries, never under an application that writes heavily and never under a database. Use the S3 policy.
Can I run the Pro edition on your VPS?
Yes, on the same hardware. You buy the licence from the Cloudreve project, log in to its registry at release.cloudreve.org, put the key in CR_LICENSE_KEY, and start with the upstream docker-compose.pro.yml override on top of the base file. We are not party to that licence.
Does hosting in Switzerland keep my files away from US authorities?
We will not promise that, and you should distrust a host that does. The facts we can state: the service is operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen). 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, and the revision of the Swiss surveillance ordinance put to consultation in January 2025 was not in force on that date. The offshore hosting page covers the jurisdiction question in more depth.
What do I need to sign up?
No-KYC: an email address is enough, and you pay in crypto; see no-KYC hosting. For anything else, open a support ticket from the client panel.
Sources
Every fact on this page, with its source
Checked 4 Nov 2026 unless noted.
Swiss law and authorities
- Revised FADP in force since 1 September 2023fedlex.admin.ch
- VÜPF/OSCPT revision not in force as of 31 October 2026admin.ch
- CopA art. 39d, in force since 1 April 2020 (RO 2020 1003)fedlex.admin.ch · verified 31 Oct 2026
- Private download permitted, making available online not (IPI)ige.ch
EU and other countries
- EU adequacy for Switzerland confirmed on 15 January 2024 (decision 2000/518/EC)commission.europa.eu
- CLOUD Act executive agreements (United Kingdom and Australia only)justice.gov · verified 31 Oct 2026
Industry, providers and software
- Cloudreve releases — 4.19.1 published 18 September 2026; security fixes in 4.16.1–4.19.0; CVE-2026-25726 in 4.13.0github.com
- Cloudreve repository — GPL-3.0 licence, feature list, Go/React stackgithub.com
- Upstream Compose file (images, ports 5212 and 6888, trust authentication)github.com
- Swico Code of Conduct Hosting, revised version published 13 March 2025swico.ch
Other references
- Docker image tags and sizes (4.19.1, 545.94 MB compressed for linux/amd64)hub.docker.com
- Deployment planning — bundled components, supported databases, SQLite advice, Redisdocs.cloudreve.org
- Docker Compose deployment — port 5212, first account becomes admin, Pro override and registrydocs.cloudreve.org
- Next steps — Site URL, reverse proxy, ProxyHeader, paths that must not be cacheddocs.cloudreve.org
- Concepts — files, blobs and metadata in the database; Pro multi-policy groupsdocs.cloudreve.org
- Storage policy comparison — S3: no native thumbnails, CORS required, no group speed limitsdocs.cloudreve.org
- S3-compatible policy notes — upload session TTL below 604,800 sdocs.cloudreve.org
- Thumbnails — proxy generation, full-file vs range reads, LibreOffice concurrencydocs.cloudreve.org
- File encryption — AES-256-CTR, master key storage, relayed downloadsdocs.cloudreve.org
- Upgrading within 4.x — back up the database firstdocs.cloudreve.org
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.
