ishrink - Fast URL Shortening With Nginx and Docker
If all you need is reliable short links and instant redirects, you probably do not need a full web app and database.
ishrink is a lightweight URL shortener that keeps everything simple: mappings live in JSON, redirects are handled directly by Nginx, and updates are applied without restarts. The result is fast, predictable, and easy to operate.
Key advantages of this approach:
- Redirect speed is Nginx-native, not app-runtime dependent
- No database, migrations, or hidden state
- URL mappings are versionable and auditable as plain files
- Changes are applied automatically with zero downtime
- Small operational footprint, ideal for self-hosted setups
The workflow is straightforward: add a link, get a short code, and it is live immediately. You can also use custom slugs for branded “vanity” links, set expiry dates, and keep link management scriptable.
This setup is best for teams that want stable infrastructure and low maintenance, especially when link updates are moderate rather than extremely high-frequency.
If you are looking for a clean, container-first way to run your own short links, this pattern is a practical alternative to heavier platforms: simple inputs, fast outputs, and full control over your redirect layer.
Itefix Blog