Self-hosted app·Code, CI and search engines
Harbor registry hosting on a Swiss VPS.
Harbor registry hosting on a Swiss VPS with S3 object storage in ALP1: sizing, harbor.yml for S3, cost from $20.95/month, and the limits that apply.
- Harbor
- Docker
- PostgreSQL
- Let's Encrypt
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, you can host Harbor with us. The setup we recommend is a VPS Standard (4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB monthly transfer) for Harbor itself and a 1 TB object storage plan for the image layers, both in ALP1 in the Swiss Alps, for $20.95 a month together. The setting that decides whether this is cheap or merely adequate is registry redirect. With Harbor's S3 storage driver and redirect left on, docker pull fetches layers directly from the bucket, whose traffic is unlimited, instead of streaming them through the VPS, whose transfer is metered. The caveat is memory: 4 GB is the minimum Harbor documents, not what it recommends, so a team that scans every push with Trivy should start on VPS Pro.
02/06
What Harbor is, and who runs it.
Harbor is an open-source container registry under the Apache 2.0 licence. It started as an internal VMware project in 2014, was open-sourced in 2016, and in June 2020 became the eleventh CNCF project to graduate. The current release is v2.15.2, published on 2 July 2026. The project maintains release branches for the three most recent minor versions, each for about nine months, and ships a new minor roughly every quarter, so plan on one upgrade per season rather than installing and forgetting.
Under the hood it is a set of containers driven by Docker Compose: an nginx proxy, the core API and web portal, a job service for replication and garbage collection, a registry built on CNCF Distribution, PostgreSQL for metadata, a Valkey cache and, if you enable it, the Trivy scanner. On top of the plain registry protocol it adds what a team needs once more than a handful of people push images: projects with role-based access, robot accounts for CI, OIDC or LDAP login, replication to and from other registries, proxy-cache projects in front of Docker Hub, tag retention and immutability rules, Cosign signature support and vulnerability reports. The usual operator is a platform or DevOps team that wants a private Docker registry under its own control, instead of paying per seat or per pulled gigabyte on a hosted service.
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.
Harbor documents a minimum of 2 CPU, 4 GB RAM and 40 GB of disk, and recommends 4 CPU, 8 GB and 160 GB. It needs Docker Engine newer than 20.10 and Docker Compose newer than 2.3, and it listens on 443 and 80. Port 80 only redirects to HTTPS, but keep it open for Let's Encrypt.
| Harbor minimum | Harbor recommended | VPS Standard | VPS Pro | |
|---|---|---|---|---|
| CPU | 2 | 4 | 4 vCPU | 6 vCPU |
| RAM | 4 GB | 8 GB | 4 GB | 8 GB |
| Local disk | 40 GB | 160 GB | 160 GB NVMe | 320 GB NVMe |
| Monthly transfer | – | – | 15 TB, 1 Gbps | 20 TB, 1 Gbps |
| Price per month | – | – | $12.99 | $22.99 |
Moving the layers to object storage changes what the local disk is for. The NVMe then holds PostgreSQL, the cache, Trivy's vulnerability and Java databases, job logs and Harbor's own logs, and 160 GB is generous for that. The one default worth trimming is log rotation, which keeps 50 files of 200 MB. Image layers, the part that actually grows, live in the bucket, and going from 1 TB to 5 TB is a change of storage plan, not a data migration.
Memory is where VPS Standard is tight. What pushes Harbor past 4 GB is concurrency: a Trivy scan of a large image, several replication workers and PostgreSQL maintenance landing at the same moment. On Standard we would lower max_job_workers from 10 to 4 and scan on a schedule rather than on every push. If your images run to several gigabytes or CI pushes dozens of times an hour, VPS Pro meets Harbor's recommendation for $10 more.
04/06
How to deploy it with us.
Order VPS Standard with Debian 13 and a 1 TB object storage plan. Our team creates the bucket after the order: its page in the client panel shows the endpoint, the bucket name and the access key, and the secret key comes once, in the ticket we send at delivery. Harbor keeps its layers under one prefix of that bucket, and the database dumps go under another. Point an A record such as registry.example.com at the VPS address.
Install Docker from Docker's own repository, which ships the Compose plugin Harbor expects:
apt-get update && apt-get install -y ca-certificates curl gnupg certbot 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 \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" > /etc/apt/sources.list.d/docker.list
apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-pluginTake the certificate while port 80 is still free, then download and verify the installer. The online installer pulls Harbor's own images from Docker Hub, roughly ten of them, which fits inside Docker Hub's unauthenticated limit unless you reinstall several times from the same address.
certbot certonly --standalone -d registry.example.com -m you@example.com --agree-tos -n
cd /opt
V=v2.15.2
curl -LO https://github.com/goharbor/harbor/releases/download/$V/harbor-online-installer-$V.tgz
curl -LO https://github.com/goharbor/harbor/releases/download/$V/harbor-online-installer-$V.tgz.asc
gpg --keyserver hkps://keyserver.ubuntu.com --receive-keys 644FF454C0B4115C
gpg -v --verify harbor-online-installer-$V.tgz.asc
tar xzf harbor-online-installer-$V.tgz && cd harbor && cp harbor.yml.tmpl harbor.ymlIn harbor.yml, change the keys below and leave the rest of the template as shipped. The storage_service block is commented out in the template; uncomment it and replace the filesystem entry with s3.
hostname: registry.example.com
https:
port: 443
certificate: /etc/letsencrypt/live/registry.example.com/fullchain.pem
private_key: /etc/letsencrypt/live/registry.example.com/privkey.pem
harbor_admin_password: <long random string; change it in the UI afterwards>
database:
password: <another long random string>
storage_service:
s3:
accesskey: <access key from the panel>
secretkey: <secret key from the delivery ticket>
region: <region shown in the panel>
regionendpoint: https://<endpoint shown in the panel>
bucket: <bucket name shown in the panel>
rootdirectory: /registry # layers here, database dumps under harbor-backup/
forcepathstyle: true # required by Distribution 3, harmless before it
redirect:
disable: false # the default, written out so nobody flips it unknowingly
jobservice:
max_job_workers: 4
log:
local:
rotate_count: 10
rotate_size: 100MRun ./install.sh --with-trivy. Certbot renews on its own timer, but Harbor's nginx holds port 80 and Harbor copies the certificate at prepare time, so add two renewal hooks:
printf '#!/bin/sh\ncd /opt/harbor && docker compose stop proxy\n' \
> /etc/letsencrypt/renewal-hooks/pre/harbor.sh
printf '#!/bin/sh\ncd /opt/harbor && ./prepare --with-trivy && docker compose up -d\n' \
> /etc/letsencrypt/renewal-hooks/post/harbor.sh
chmod +x /etc/letsencrypt/renewal-hooks/*/harbor.shThen check that redirect works. Push a test image, pull it from a machine that has never seen its layers, and look at the registry log on the VPS:
grep 'GET /v2/.*/blobs/' /var/log/harbor/registry.log | tail -n 5Blob requests answered with 307 mean the client was sent to a presigned URL on the bucket. A 200 means the layers came through the VPS and counted against its transfer. One consequence of redirect is easy to miss: clients must reach the bucket endpoint as well as the registry hostname, so a cluster behind an egress allowlist needs both entries.
For day two, give each pipeline its own robot account with push rights on one project, set tag retention per project, and schedule garbage collection weekly under Administration → Clean Up. GC walks every layer under the registry's prefix; our object storage charges no request fees, so that walk costs time, not money. Back up the database and /data/secret under a second prefix of the same bucket from a nightly timer:
export AWS_ACCESS_KEY_ID=<key> AWS_SECRET_ACCESS_KEY=<secret>
export RESTIC_REPOSITORY=s3:https://<endpoint>/<bucket>/harbor-backup RESTIC_PASSWORD_FILE=/root/.restic-pass
restic init # first run only
docker exec harbor-db pg_dumpall -U postgres | gzip > /root/harbor-db.sql.gz
restic backup /root/harbor-db.sql.gz /data/secret /opt/harbor/harbor.yml
restic forget --keep-daily 14 --keep-weekly 8 --pruneThe bucket holds layers but not the knowledge of which layer belongs to which tag; that lives in PostgreSQL. /data/secret holds the key Harbor uses to encrypt the registry credentials it stores. Lose either and the bucket is a heap of unlabelled blobs. If you upgrade an older install to 2.15.2, take a fresh dump first: that release moves the bundled PostgreSQL from version 15 to 18 with pg_upgrade on first start.
05/06
Cost.
| Item | Per month |
|---|---|
| VPS Standard: 4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB transfer, 1 Gbps | $12.99 |
| Object storage 1 TB: S3-compatible, unlimited traffic, 5 Gbps, no request fees | $7.96 |
| Total | $20.95 |
The VPS includes one IPv4 address and root access. Optional extras: daily VPS backups at +20 % ($2.60 a month on Standard, theoretical), priority support at $10 a month, and yearly billing at roughly −25 % on the VPS (about $9.75 a month, theoretical). The same pair with VPS Pro costs $30.95; VPS Standard with 5 TB of storage instead of 1 TB comes to $52.79. Every plan is listed on the pricing page.
The reason the storage line matters is egress. Take 30 ephemeral CI runners, each pulling a 400 MB image 20 times a day with no layer cache to soften it: 240 GB a day, about 7.2 TB a month. At AWS's list rate for internet egress, $0.09 per GB after the first 100 GB, the transfer alone comes to roughly $640 a month (theoretical). Here it falls inside the bucket's unlimited traffic when redirect works, and inside VPS Standard's 15 TB when it does not.
Payment is in cryptocurrency only (Monero, Bitcoin, USDT, Ethereum, Litecoin and others), with prices and balances in US dollars. Top-ups run from $25 to $5,000 with a bonus of 5 % from $50 up to 20 % from $500, and the unused paid part of a top-up is refundable within 14 days.
06/06
Limits, law and acceptable use.
VPS transfer is metered, not unmetered: Standard includes 15 TB a month, which is an average of about 46 Mbit/s sustained over 30 days (theoretical). With redirect on, pulls leave through object storage; pushes, replication and the first fetch of each layer through a proxy-cache project still pass through the VPS.
A registry with public projects is a distribution service, and you are its operator. In Switzerland, downloading a work for private use is permitted (software excepted), but making it available online without permission is not, so a public project that mirrors proprietary images you have no licence to redistribute is your problem before it is ours. Since 1 April 2020, the Copyright Act (art. 39d) requires a host to keep a work from reappearing only when it was already made available unlawfully through the same service, the host was notified, and the service creates a particular risk of infringement. 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). Images built to distribute malware fall in that last category.
Your obligations as operator are plain. Stay on a supported Harbor minor and apply patch releases. Replace the template's default admin password (Harbor12345) before the first start. Keep self-registration off and push limited to named users and robot accounts. Harbor's audit log records usernames and client IP addresses, which makes you the controller of that personal data under the revised Federal Act on Data Protection, in force since 1 September 2023.
If the same team also hosts its Git forge and CI runners, our GitLab CE guide covers the sizing for that side.
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 run Harbor on the VPS disk alone, without object storage?
Yes. Leave storage_service commented out and Harbor stores layers under /data on the 160 GB NVMe. It works for a small team with a few dozen gigabytes of images, but every pull then counts against the VPS transfer, and outgrowing the disk means moving to a bigger plan rather than changing a storage tier.
Is VPS Standard enough, or should I take Pro?
Standard is enough for a team that pushes a few times an hour and scans on a schedule. Take Pro (8 GB RAM, $22.99) if you scan every push, replicate to several remote registries in parallel, or regularly push images above a couple of gigabytes. Both plans run the same deployment and the same harbor.yml, so moving up later is a migration, not a rewrite.
Can Harbor shield our CI from Docker Hub's rate limits?
Yes, with a proxy-cache project pointed at Docker Hub and configured with a Docker Hub account. Docker Hub currently allows unauthenticated clients 100 pulls per 6 hours per IPv4 address and free Personal accounts 200, which a CI fleet behind one address exhausts quickly. Pulled through registry.example.com/<cache-project>/library/nginx:1.27, repeated pulls are served from your bucket, and the manifest version checks the cache makes upstream do not count as pulls under Docker's definition.
Does hosting in Switzerland keep the registry out of reach of foreign authorities?
Not as a blanket promise. Switzerland has its own data-protection law outside the EU, and on 15 January 2024 the European Commission confirmed that Swiss protection remains adequate, so EU teams can store personal data here without additional transfer safeguards. 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 revised Swiss surveillance ordinance put to consultation in January 2025 is not in force. Hosta AG answers to Swiss courts and authorities; if your own company is subject to US law, the CLOUD Act reaches you wherever the server stands. The offshore hosting page sets out the jurisdiction in more detail.
Do you need ID to open an account?
No. We are a no-KYC host: an email address is enough. Business customers paying in crypto are welcome. The contracting party is Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen); to reach us, open a support ticket from the client panel.
When does a dedicated server make more sense?
When redirect is not an option, for example because your clients can reach only the registry hostname, every layer streams through the server and metered VPS transfer becomes the constraint. Our dedicated servers start with Rigi (EPYC 4244P, 32 GB DDR5 ECC, 1 TB NVMe) at $64.99 a month, with a 10 Gbps port and unmetered traffic under fair use, which also leaves room to scan every push without rationing memory.
Sources
Every fact on this page, with its source
Checked 5 Nov 2026 unless noted.
Swiss law and authorities
- Revised Federal Act on Data Protection, in force since 1 September 2023fedlex RS 235.1
- Revision of the surveillance ordinance (VÜPF/OSCPT) not in force; second consultation announcedadmin.ch · status as of 31 Oct 2026
- Copyright Act art. 39d stay-down conditions, in force since 1 April 2020 (RO 2020 1003)fedlex LDA · verified 31 Oct 2026
- Private-use download permitted, making available online without permission notIPI
EU and other countries
- European Commission review of 15 January 2024 confirming Swiss adequacy (decision 2000/518/EC)European Commission
- CLOUD Act executive agreements (United Kingdom and Australia only)US Department of Justice · verified 31 Oct 2026
Industry, providers and software
- harbor.yml.tmpl (redirect key, default admin password, log rotation and job worker defaults, Trivy database repositories)GitHub goharbor/harbor
- Harbor releases (v2.15.2 of 2 July 2026, PostgreSQL 15 → 18 upgrade, Valkey cache, Distribution v2.8.3-harbor.1, Cosign v3 support in v2.15.0)GitHub releases
- Harbor release and support policy (three minor releases, about nine months each)RELEASES.md
- CNCF Distribution S3 driver (presigned-URL redirect, regionendpoint, forcepathstyle)distribution.github.io
- AWS data transfer out: 100 GB free per month on the official page; the $0.09/GB first-tier rate for US and EU regions is rendered client-side there and was cross-checked against several 2026 pricing trackersaws.amazon.com
Other references
- Harbor installation prerequisites (CPU, RAM, disk, Docker and Compose versions, ports)goharbor.io
- Harbor 2.15 harbor.yml reference and storage backend configurationgoharbor.io
- Harbor installer download and signature verification (key 644FF454C0B4115C; online installer pulls from Docker Hub)goharbor.io
- CNCF announcement of Harbor's graduation, 23 June 2020cncf.io
- Docker Hub pull limits per 6 hours and definition of a pull (page updated 3 September 2026)docs.docker.com
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.
