Self-Hosting · Health

wger: Workout and Nutrition Tracking on Your Own Server

wger is the rare self-hosted tool that covers the whole fitness ledger in one place: workout routines built from a large exercise database, training logs, nutrition plans with real food data, body measurements, and — since version 2.7 — imported health metrics such as weight, blood pressure, heart rate, and sleep from Apple Health and Health Connect. It is free and open source. This guide is also the most plainly framed install in this series: wger’s official Docker stack is six containers, and it wants an evening and a plan, not a one-line command. Here is what you get for that effort, and how to approach it.

Published Nov 21, 2026

What wger does that nothing else self-hosted quite does

The fitness corner of self-hosting is full of single-purpose tools — a workout logger here, a weight tracker there. wger’s distinction is breadth under one login. The workout side builds routines from an exercise database with images and descriptions, schedules them across training days, and logs sets, repetitions, and weights, with the history graphed over time. The nutrition side builds meal plans against a large ingredient database — with barcode lookup through Open Food Facts — and tracks intake against targets. Around those two sit the measurements: weight and body metrics logged directly, and in the current 2.7 release, imports of health metrics from Apple Health and Health Connect exports, including body fat, blood pressure, heart rate, oxygen saturation, sleep, and steps. For someone whose training and eating are one system, having the system’s records in one database — on your server, exportable, with no subscription and no advertising — is the entire argument, and it is a good one.

The audience check matters. wger is a tracker for people who already train with some structure: it rewards a written routine and consistent logging, and it will not coach you, generate a program from a chat prompt, or nudge you the way a commercial app does. If your current system is a commercial app whose subscription you resent and whose data export you have already tested, wger is the natural landing place. If you are starting from the sofa, the practical advice is to start with any tool at all and let the habit form first; the database migration can come later, and wger will import what it can.

The install: six containers, and no pretending otherwise

Now the part this guide refuses to soften. wger’s official Docker Compose stack is six services: an nginx front end, the web application itself, a PostgreSQL database, a Redis cache, and two Celery workers (one for background jobs, one for scheduled tasks). It wants roughly 2 GB of memory, its own hostname — it does not work from a subdirectory of another site — and a current Docker Compose. The stack boots with default administrator credentials that must be changed before the instance is reachable by anyone else, and the stock configuration publishes its web port on all interfaces, so putting it behind your usual reverse proxy or VPN-only route is part of the install, not an optional extra. Pin the application to a version tag as well; the project’s latest tag has historically pointed at development builds, which is the last thing a health database needs.

None of this is unreasonable — each container has a job, and the result is a properly engineered application — but it is a different class of commitment from the single-container tools elsewhere in this series, and it should be scheduled like one. Give it a weekend slot, a hostname you intend to keep, and a backup entry from day one: a six-container stack that nobody backs up is a diary with a countdown. This site’s compose basics guide and database backups guide cover the habits the stack assumes; read the second one twice, because PostgreSQL inside a multi-service stack is where casual backup habits go to be tested.

Daily use and the data question

In use, wger is a web application — on the desktop for planning routines and meals, and on a phone browser or its mobile apps at the gym for logging the session as it happens. The routine view tells you today’s session; the log records what you actually did, which over months becomes the complete history commercial apps hold hostage. Nutrition planning is the slower half to adopt: building the first week’s plan against the ingredient database takes real time, after which the recurring structure of most people’s eating makes each following week mostly copying and adjusting. The health-metric imports close the loop for people whose watch already collects the numbers — the watch keeps collecting, and the archive lives at home.

That archive is the deeper point. Health and training data is among the most personal data a household produces, and it compounds in value over years — the five-year weight and strength history is genuinely irreplaceable, unlike most of what sits on a NAS. wger’s data lives in its PostgreSQL database on your disk, and the project’s export tools let it out again. Treat it with the seriousness that implies: backups on the normal rotation plus one off-site, upgrades pinned and deliberate, and the admin password changed from the default before anything else. Do those things, and the heaviest install in this series becomes the one holding the data that most deserves the effort.

The verdict

wger is worth it for the household member who trains and eats by a plan and wants the records at home: nothing else self-hosted combines workouts, nutrition, and health metrics in one system. It is not worth it as a casual experiment, because its install is a project and an abandoned six-container stack helps nobody. Decide which of those you are before you start — and if you are the first kind, clear the weekend, follow the plan above, and enjoy owning the ledger. The rest of this site’s self-hosting series, from the beginner’s Docker guide onward, will make the stack feel familiar; wger is simply where the training wheels come off.

Building the first routine, and what the logs become

The first hour in wger is routine construction, and it repays care. A routine is a set of training days; each day is a set of exercises drawn from the database, with sets, repetitions, and target weights, and with supersets and ordering where your training uses them. The database entries carry descriptions and images, so a routine built at the desk is unambiguous at the rack. From there the log takes over: each session records what was actually lifted against what was planned, and the gap between those two lines, graphed over months, is the most truthful training document most people have ever owned. Progression stops being a feeling and becomes a chart — the exercise that has not moved in eight weeks is visible, and so is the one quietly doubling.

Nutrition follows the same arc. The first week’s plan is the slow one — searching the ingredient database, setting the meals the household actually repeats — and subsequent weeks are edits rather than constructions. Barcode scanning through the mobile route speeds the logging of packaged food, and the plan-versus-actual comparison does for eating what the log does for lifting. None of this requires the health-metric imports; they are the garnish. The core loop — plan, do, log, look — runs entirely on entries you make, which is why the system still works for the household member whose only wearable is a notebook.

A note on who should skip it

Fairness requires the negative case in full sentences. If your training is a class schedule and a step count, wger is a six-container answer to a question a notebook answers. If nobody in the household will log a session within a day of doing it, the database becomes fiction within a month, and a fiction database is worse than none because it looks authoritative. And if the server it would run on is already stretched, this is the wrong tenant to add. The tool is excellent at its job; the job is specific. Readers in the “maybe” category can trial the hosted demo on the project’s site with their next real training week before committing the weekend — the same try-before-installing advice this guide gives for the household tools, applied to the heaviest install of the set.

Official documentation and references

Frequently asked questions

How many containers does wger need?

Six in the official stack: nginx, the web application, PostgreSQL, Redis, and two Celery workers for background and scheduled tasks. It wants about 2 GB of memory and its own hostname — it is the heaviest install in this series, and this guide frames it that way on purpose.

What can wger track?

Workout routines and training logs, nutrition plans with barcode lookup via Open Food Facts, body measurements, and — since 2.7 — health metrics imported from Apple Health and Health Connect, including weight, blood pressure, heart rate, sleep and steps.

Are there default passwords to change?

Yes. The stack boots with default administrator credentials published in the project’s documentation. Changing them before the instance is reachable by anyone else is a required install step, not a suggestion.

Should I use the latest image tag?

No. The latest tag has historically pointed at development builds. Pin a released version tag, such as the current 2.7 line, and upgrade deliberately.

Related guides