Self-hosted app·Health and fitness
Self-hosting wger on a VPS in the Swiss Alps.
wger hosting in the Swiss Alps: the official Docker stack on a 2 GB VPS at $6.99/mo, with sizing, a safe first start, backups and FADP duties.
- Django
- PostgreSQL
- Redis
- NGINX
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port10 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: $62.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 2 vCPU, 2 GB RAM
- 80 GB NVMe local storage
- 10 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/07
Short answer.
Yes. The official wger Docker Compose stack runs on our Cloud VPS Starter plan (2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB of monthly transfer, $6.99 a month) in ALP1, our site in the Swiss Alps. Starter is the right size for one person or a household; a club or a coach with dozens of clients on the mobile app should start on Standard (4 vCPU, 4 GB, $12.99).
The thing that matters most is not the hardware but the first ten minutes. The stock compose file publishes nginx on port 80 on every interface, the instance boots with the account admin / adminadmin, and ports published by Docker bypass the ufw or nftables rules you set on the host. Bind the stack to localhost, change that password through an SSH tunnel, and only then put a TLS proxy in front of it. The steps below do it in that order.
02/07
What wger is and who builds it.
wger is a free, open-source tracker for workouts, nutrition and body measurements, written in Django and licensed under the AGPL 3.0 or later. Version 1.0 came out in October 2012, and Roland Geider has tagged its releases under the wger-project organisation on GitHub since the early versions. There are mobile apps for Android and iOS, and they can be pointed at your own server instead of the public instance at wger.de. The current release is 2.7, published on 3 September 2026.
Release 2.7 changed what a wger database holds. The app can now import body weight, body fat, blood pressure, heart rate, blood oxygen, sleep phases and daily steps from Apple Health and Health Connect, and store them next to the training logs. Under the Swiss Federal Act on Data Protection, in force in its revised form since 1 September 2023, data relating to health is sensitive personal data (art. 5 let. c). For one person, that is a good reason to keep the database on a machine they control. For anyone running wger for other people, it is also a list of obligations, covered further down.
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/07
What the stack runs.
The production compose file in the wger-project/docker repository starts seven containers:
| Service | Image | Role |
|---|---|---|
nginx | nginx:stable | Serves static and media files and proxies to the app; the only service with a published port (80) |
web | wger/server:latest | Django under gunicorn, internal port 8000 |
db | postgres:15-alpine | Runs with wal_level=logical, 256 MB shared buffers, 30 connections at most |
cache | redis | Django cache and Celery broker |
celery_worker | wger/server:latest | Background jobs: exercise and ingredient sync, outgoing mail |
celery_beat | wger/server:latest | Schedules those jobs |
powersync | PowerSync service | Offline-capable sync for the mobile app, fed by Postgres logical replication |
PowerSync is the reason Postgres runs with logical replication. It needs a one-time setup command and a compaction job that upstream does not schedule for you. The bundled nginx has to stay even if you run your own proxy, because it is what serves the static files.
04/07
Sizing why Starter, and where it gets tight.
Upstream publishes no hardware requirements, so here is how we read the defaults. Postgres is tuned for 256 MB of shared buffers and an effective cache of 768 MB, gunicorn starts 3 workers with 2 threads each, and the Celery worker defaults to a concurrency of 4. On 2 GB, keep gunicorn at 3 workers and ignore the docs' rule of thumb of (2 × cores) + 1; lower CELERY_WORKER_CONCURRENCY to 2, cap Redis (the compose file itself warns that it can take all available memory), and add a 2 GB swap file as a cushion for the bulk ingredient import, which is very likely the heaviest job the stack runs.
Disk is not the constraint. Transfer is not either. Starter includes 10 TB a month, about 333 GB a day (theoretical), and a private instance uses a small fraction of that. VPS traffic counts against that allowance; it is not unmetered.
| Plan | vCPU / RAM / NVMe | Transfer | Price | Fits |
|---|---|---|---|---|
| Starter | 2 / 2 GB / 80 GB | 10 TB | $6.99/mo | You, a household, a few friends |
| Standard | 4 / 4 GB / 160 GB | 15 TB | $12.99/mo | A club or coaching practice with many app users |
| Pro | 6 / 8 GB / 320 GB | 20 TB | $22.99/mo | A gym using wger's member management next to other services |
05/07
Deploying it with us.
- 01
Server and Docker
Order Starter with Debian 13 from the link above. Install Docker Engine and the Compose plugin from Docker's own apt repository rather than Debian's packages: the stack is split into
include:files, and the!overridetag used below needs Compose 2.24.4 or later. Clone the repository and keep its directory name, because the upstream backup and restore commands refer to the volumedocker_postgres-data:git clone https://github.com/wger-project/docker.git cd docker - 02
Configuration before the first start
Leave
config/prod.envanddocker-compose.ymluntouched. Upstream changes both, andgit pullis part of every upgrade. Your settings go into two extra files. Firstconfig/my.env:SITE_URL=https://fit.example.com CSRF_TRUSTED_ORIGINS=https://fit.example.com TIME_ZONE=Europe/Zurich TZ=Europe/Zurich SECRET_KEY=replace-with-the-output-of-the-command-below ALLOW_REGISTRATION=False ALLOW_GUEST_USERS=False CELERY_WORKER_CONCURRENCY=2 X_FORWARDED_PROTO_HEADER_SET=True AXES_IPWARE_PROXY_COUNT=1 AXES_IPWARE_META_PRECEDENCE_ORDER=HTTP_X_FORWARDED_FOR,REMOTE_ADDRThen
docker-compose.override.yml:services: nginx: ports: !override - "127.0.0.1:8080:80" db: environment: - TZ=Europe/Zurich cache: mem_limit: 256m web: env_file: [./config/prod.env, ./config/my.env] celery_worker: env_file: [./config/prod.env, ./config/my.env] celery_beat: env_file: [./config/prod.env, ./config/my.env]Generate the secret with
python3 -c "import secrets; print(secrets.token_urlsafe(50))". Set the time zone now and treat it as permanent: since 2.7 it is the fallback for users whose app has not reported its own zone, and changing it later shifts their past training days. The database container ships withTZ=Europe/Berlin, which keeps the same clock as Zurich, but a Swiss instance may as well say so. Closing registration and guest accounts matters more than it looks. CVE-2026-27835, which affected every version up to 2.4, let any registered user read the repetition settings of every other user, and a family instance has no reason to hand strangers an account in the first place. The twoAXES_lines make the login lockout count real client addresses behind your proxy; without them every visitor looks like the same address, and a few failed logins lock everyone out. The 256 MB Redis cap is a starting value for a small instance, not a measurement; a cache that hits it is restarted, so checkredis-cli INFO memoryafter a week and adjust. - 03
First start, keys and the admin password
docker compose up -d docker compose ps # wait until web reports "healthy" docker compose exec web ./manage.py generate-jwt-keys # paste JWT_PRIVATE_KEY and JWT_PUBLIC_KEY into config/my.env, then: docker compose up -d docker compose exec web ./manage.py setup-powersync-storageThe web container's health check allows five minutes of start-up, which migrations and static file collection can use on the first boot. Without fixed JWT keys, new ones are generated at every restart and every app user is logged out. Then, from your own machine, open a tunnel with
ssh -L 8080:127.0.0.1:8080 root@<your-vps-ip>, browse tohttp://localhost:8080, log in asadmin/adminadminand change the password. At no point has the default account been reachable from the internet. - 04
TLS in front
Caddy on the host is the least work, since it obtains and renews the Let's Encrypt certificate itself:
fit.example.com { reverse_proxy 127.0.0.1:8080 { flush_interval -1 } }flush_interval -1is there for/ps/, the PowerSync endpoint. The app keeps one long-lived streaming response open there, and a proxy that buffers it delivers nothing, even though the server sent the data long ago. If you prefer nginx on the host, the wger PowerSync docs give a/ps/block with buffering off and one-day read and send timeouts; copy it rather than improvising. Because Docker now publishes only on 127.0.0.1, your firewall rules mean something again: open 80 and 443, and SSH. - 05
Data, scheduled jobs and backups
The Docker image ships default exercises but no ingredients. Celery syncs exercises weekly and the ingredient dump monthly from wger.de. For a quick start,
docker compose exec web wger load-online-fixturesloads a small base set; the full dataset comes withdocker compose exec web ./manage.py sync-ingredients-bulk --set-mode insert. Run the full import once while watchingdocker stats.PowerSync appends every change on a synced table to its own log, and its self-hosted service has no scheduler to compact it. One cron line does the job:
# /etc/cron.d/wger-powersync-compact 0 3 * * * root cd /root/docker && docker compose run --rm -T powersync compact >>/var/log/wger-compact.log 2>&1For the database, the repository's
backup/backup-db.shand its systemd timer make daily dumps in Postgres's custom format, check that they can be read, and keep 7 daily, 4 weekly and 6 monthly copies. Those copies sit on the same disk, which saves you from a bad migration but not from a lost server. Push the dump directory to an S3-compatible bucket on our object storage with restic or rclone; a 250 GB bucket costs $1.99 a month. It is a bucket reached with an endpoint and access keys, not a disk to attach, so never put the Postgres data directory on an rclone mount of it. Back up the media volume too if your users upload progress photos; exercise images can be fetched from upstream again. After a restore, rerunsetup-powersync-storageand drop the oldpowersync_%replication slot, as the upstream backup page describes, or PowerSync fails with errors that point nowhere useful.Password resets need mail: set
ENABLE_EMAIL=Trueand theEMAIL_*variables. Outbound port 25 is open on every VPS, so you can deliver directly, but without SPF and DKIM in place a relay on port 587 will reach inboxes more reliably. Upgrades aregit pull,docker compose pullanddocker compose up -d, after reading the release notes. Release 2.7 shows why: it asked self-hosters to stop thepowersyncservice while the database migrations ran.
06/07
Cost.
| Item | Per month |
|---|---|
| VPS Starter (2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB transfer, 1 Gbps) | $6.99 |
| Daily VPS backups (+20 %) | $1.40 (theoretical: 20 % of $6.99) |
| Object storage, 250 GB bucket for off-site dumps | $1.99 |
| Total | $10.38 (theoretical) |
Yearly billing takes roughly 25 % off the VPS, which puts Starter alone at $62.99 a year (theoretical; the exact figure is on our pricing page). An extra IPv4 address is $2 a month and priority support $10. The VPS-level daily backup is useful for rolling back the whole machine, but we would still keep the database dumps: they restore into a fresh install, while a machine rollback also undoes everything else you did that day.
Payment is in cryptocurrency only (Monero, Bitcoin, Tether, 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, 10 % from $100, 15 % from $250 and 20 % from $500. A $100 top-up becomes $110 of credit, about 15 months of Starter (theoretical), and the unused paid part of a top-up is refundable within 14 days. The honest downside is that there is no card option, and the application side is yours: we run the VPS, you run wger, its upgrades and its users.
07/07
Limits and your obligations.
A wger instance for yourself raises no policy questions. Running one for clients or club members makes you the controller of their health data under the FADP, which means express consent where consent is the basis for processing it (art. 6 para. 7) and terms that say what you do with it; wger lets you mount your own tos.html and about.html over the defaults for exactly this. If your clients are in the EU, the European Commission's review of 15 January 2024 confirmed that Switzerland still ensures an adequate level of protection, so their data can flow here without additional safeguards.
User uploads are published content. In Switzerland, downloading a work for private use is permitted (software excepted), but making it available online without permission is not, so a gym that uploads clips ripped from a paid training course is making them available unlawfully. 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). Keeping wger patched is also your job; the CVE above was fixed upstream, but only installations that pulled the fix are protected.
Switzerland Hosting is operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen), and the server sits in ALP1 under Swiss law. 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 removes one route for foreign data requests, not every route, and our offshore hosting page sets out the rest. For anything not covered here, open a support ticket from the client panel.
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 |
|---|---|---|---|---|---|---|---|
| StarterRecommendedStaging, 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 |
| 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.
Is 2 GB of RAM really enough for wger?
For a personal or family instance we expect so, provided you lower Celery concurrency, cap Redis and add swap. If many people sync the mobile app daily, or the VPS also runs other containers, Standard's 4 GB removes the question for $6 more a month.
Can wger keep its media files on your object storage?
wger supports S3-compatible storage for static and media files, but it serves them from public bucket URLs, without signed links. For exercise images that is harmless; for gallery progress photos it means a public URL per photo. We would keep media on the local volume and use the bucket for encrypted backups.
Does the mobile app work with a self-hosted instance?
Yes. Point the app at your own server address; sync runs through PowerSync at /ps/. If the app logs in but never syncs, the usual cause is a proxy buffering that stream. Imported Apple Health or Health Connect data then lands in your Postgres, not on wger.de.
Can I use SQLite to save memory?
wger supports SQLite for small or test installations, but PowerSync works only with Postgres, so the mobile app's sync stops working. On Starter, keep Postgres and tune the other services instead.
Do I have to identify myself to order?
No-KYC: an email address is enough, and payment is in crypto; see no-KYC hosting. You remain responsible under Swiss law for what your instance publishes and for the data of the people who use it.
What happens if someone complains about content on my instance?
We forward complete complaints to you. Swiss copyright law (CopA art. 39d, since 1 April 2020) only requires a host to keep a work from being made unlawfully available again when it was already made available unlawfully through the same service, the host was notified, and the service creates a particular risk of infringement. More general questions are answered in our FAQ.
Sources
Every fact on this page, with its source
Consulted 4 Nov 2026 unless noted.
Swiss law and authorities
- Federal Act on Data Protection, RS 235.1 (in force since 1 September 2023; art. 5 let. c, art. 6 para. 7)fedlex.admin.ch
- Swiss Copyright Act, art. 39d (in force since 1 April 2020, RO 2020 1003; verified 31 October 2026)fedlex.admin.ch · verified 31 Oct 2026
- Swiss Federal Institute of Intellectual Property, copyright on the internet (private download vs. making available)ige.ch
EU and other countries
Industry, providers and software
- wger, release 2.7 notes (published 3 September 2026)github.com
- wger-project/docker, docker-compose.yml, services/postgres.yaml, services/redis.yaml (services, images, Postgres parameters, health check start period, Redis memory warning)github.com
- Swico, Code of Conduct Hosting (updated version published 13 March 2025)swico.ch
Other references
- wger changelog (1.0 on 16 October 2012; 2.6 on 17 June 2026)wger.readthedocs.io
- wger docs, Docker compose installation (default admin, required settings, proxy and lockout notes, Docker bypassing the host firewall, !override and Compose 2.24.4)wger.readthedocs.io
- wger docs, Settings (TIME_ZONE, ALLOW_REGISTRATION, CELERY_WORKER_CONCURRENCY, gunicorn defaults, sync schedules, email)wger.readthedocs.io
- wger docs, PowerSync (setup, /ps/ proxy requirements, compaction)wger.readthedocs.io
- wger docs, Backup (backup script, retention, restore and replication slot)wger.readthedocs.io
- wger docs, Syncing exercises and ingredients (about 1 GB for the full ingredient set)wger.readthedocs.io
- wger docs, Storage (S3 settings, public URLs, SQLite and PowerSync)wger.readthedocs.io
- CVE-2026-27835 / GHSA-xf68-8hjw-7mpm (versions up to 2.4; published 26 February 2026)cve.enginsight.com
- Caddy, reverse_proxy directive (flush_interval negative value disables buffering)caddyserver.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.
