We checked 57 real docker-compose files from popular self-hosted projects. Not one scored 100.
Every file here comes from a project in the awesome-selfhosted index — software with real users, real documentation, and real maintainers. The median file scores 62 out of 100.
Method, so you can reproduce it
The repo list is the 1133 GitHub links in the awesome-selfhosted README. I took a deterministic sample of 150 (seed 20261126) and tried five conventional paths on both main and master: docker-compose.yml, docker-compose.yaml, compose.yaml, docker/compose.yaml, docker/docker-compose.yml. That found 57 files. Each was scored by the same checker that runs on the free tool.
A file was counted only if it actually had a services: block. Nothing was modified, nothing was run.
What showed up
| Finding | Count | Files | Class | Why it matters |
|---|---|---|---|---|
| Unpinned or floating image tag | 69 | 121% | defect | Upgrades happen on `docker compose pull` without anyone deciding to. |
| No memory limit | 173 | 303% | hygiene | One runaway container can OOM the host and take the database with it. |
| No healthcheck / readiness ordering | 136 | 238% | hygiene | 'Running' is treated as 'ready', which breaks on cold boot, not on warm restart. |
| Port bound to all interfaces | 97 | 170% | hygiene | Reachable from any network the host is on, usually over plain HTTP. |
| No restart policy | 70 | 122% | hygiene | Stays down after a reboot or crash. |
| Credential-shaped literal in the file | 49 | 85% | defect | A value committed where the file is shared. 1 in 4 were obvious placeholders. |
| Obsolete `version:` key | 13 | 22% | hygiene | Ignored by Compose v2; harmless but signals a copied-in file. |
| Random host port | 7 | 12% | hygiene | Firewall rules and bookmarks drift. |
| Host networking | 6 | 10% | defect | Removes network isolation entirely. |
| Dangerous capability | 4 | 7% | defect | SYS_ADMIN / ALL are common container-escape paths. |
| Privileged container | 2 | 3% | defect | Effectively full host access. |
| Docker socket mounted | 1 | 1% | defect | Container can control the whole host. |
Counts exceed the number of files because a file can hit the same rule several times — 179 services across 57 files means most files describe more than one container.
The correction that matters
It would be easy — and wrong — to write "39% of these projects leak credentials". I checked the actual values before making that claim.
Of the 49 credential-shaped literals found across 22 files, 24% were obvious placeholders — password, changeme, example, your_password. The rest are ambiguous: short values, dev tokens, entries that may be example defaults or may be real. Telling those apart needs case-by-case review, which a static tool cannot do.
So the honest statement is: 22 of 57 files (38%) contain a literal credential-shaped value in the compose file, and about a quarter of those are clearly placeholders. Whether the remainder are real secrets is not something this data can tell you.
The same caution applies to everything above
These are example and development files, not production deployments. A file that omits memory limits or ships a demo password is usually being honest about its purpose — the maintainers wrote it to get you started in ten minutes, and it does that well.
The finding isn't "these projects are insecure". It's narrower and more useful: the file people copy to get started is almost never the file they should run, and nothing in the copy step tells them that.
What actually breaks
Three of these matter far more than the rest, because they fail in ways that are invisible during setup and expensive later:
Readiness ordering. Without healthchecks, the app starts as soon as the database container exists, not when it can accept connections. On a warm machine this works every time you test it. After a power cut it doesn't, and the failure looks like corruption rather than a race.
Floating tags. :latest means the next pull is an upgrade nobody scheduled. Across a major version that carries migrations.
Unbounded memory. OCR, indexing and media transcoding spike. Without a limit the kernel picks the victim, and it doesn't pick well.
What to do about it, concretely
Run the free checker at bartersmith.com against your own file — it takes a paste, no account, and it's the same tool that produced this data. Then fix in this order: readiness, then pinning, then memory limits, then port bindings. The cosmetic rules can wait.
If the file matters and you want the reasoning written out per line, there's a full worked example here.