2026-11-25 · docker · devtools · self-hosting · caddy
Self-Host IT-Tools with Docker: Developer Utilities on Your VPS
Run CorentinTh/it-tools in Docker behind Caddy with HTTPS. Static Vue SPA, no database, localhost-bound port, and a clean update and backup flow.
- Total RAM
- 8.2 MB
- Startup
- 46.6 s
- Port
- 8080
- HTTP
- 200
What IT-Tools does and what it needs
IT-Tools is a Vue single-page app that bundles a long list of small developer utilities: hash generators, JWT decoders, UUID generators, cron parsers, base64 encoders, color converters, and dozens more. Everything runs in the browser. There is no backend, no database, and no user accounts.
The official image (corentinth/it-tools on Docker Hub, or ghcr.io/corentinth/it-tools on GitHub Packages) is an Nginx container serving the compiled static bundle on port 80. That is the entire runtime surface. The upstream project does not publish a minimum memory figure; the container is a static file server, so idle memory is dominated by Nginx itself, and load scales with concurrent requests rather than with any background job. A small VPS handles it comfortably.
Because the app is static, the operational work is mostly about TLS, caching, and keeping the image current.
Prerequisites, ports, and volume constraints
- Docker Engine 24+ and the Compose v2 plugin.
- A DNS A/AAAA record pointing at your VPS if you want HTTPS. Without a domain you can still test over an SSH tunnel.
- Port
8080on the host, bound to127.0.0.1so the app is not exposed unencrypted on the public IP. Caddy (or Nginx) terminates TLS and proxies to it. - No persistent volumes are required. The container is stateless; nothing the user does is stored server-side. Backups therefore only cover your Compose file and
.env.
There are no required environment variables for the app itself. The only settings you will manage are the host port and the timezone for log timestamps.
Production Docker Compose setup
Create the project directory and write the Compose file:
mkdir -p /opt/it-tools && cd /opt/it-tools
cat <<'EOF' > compose.yml
services:
it-tools:
image: corentinth/it-tools:latest
container_name: it-tools
restart: unless-stopped
ports:
- "127.0.0.1:${IT_TOOLS_PORT:-8080}:80"
environment:
TZ: ${TZ:-UTC}
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/ >/dev/null || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
EOF
Write the .env file. There are no secrets to generate here, but keep the file so the port and timezone are explicit:
cat <<'EOF' > .env
IT_TOOLS_PORT=8080
TZ=UTC
EOF
Start the stack:
docker compose up -d
docker compose ps
curl -I http://127.0.0.1:8080/
The curl should return 200 OK with Server: nginx. If you are testing without a domain, open an SSH tunnel from your laptop:
ssh -L 8080:127.0.0.1:8080 user@your-vps
Then browse http://localhost:8080. Do not change the bind address to 0.0.0.0 on a public VPS; the app would be served over plain HTTP.
Reverse proxy, HTTPS, and first-run hardening
IT-Tools is a static SPA with client-side routing. The proxy needs to serve index.html for unknown paths, forward the correct scheme, and allow reasonably sized request bodies (some tools accept pasted blobs). There are no WebSockets and no authentication, so the main hardening step is deciding who can reach the site.
Caddy handles all of this with a short block. Install Caddy on the host (not in Compose) and write /etc/caddy/Caddyfile:
it-tools.example.com {
encode zstd gzip
request_body {
max_size 10MB
}
reverse_proxy 127.0.0.1:8080 {
header_up X-Forwarded-Proto {scheme}
header_up X-Real-IP {remote_host}
}
header {
X-Content-Type-Options nosniff
Referrer-Policy strict-origin-when-cross-origin
}
}
Reload Caddy with systemctl reload caddy. Caddy obtains a certificate automatically once DNS resolves to the VPS.
If you use Nginx instead, the equivalent location block is:
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 10m;
}
Because IT-Tools has no login, anyone who can reach the URL can use it. If that is not what you want, restrict access at the proxy: put it behind Cloudflare Access, an allow/deny block, or basic auth in Caddy (basic_auth). The app itself will not enforce anything.
One more note: some tools (JWT decoding, hashing) process sensitive input. Since everything runs in the browser, the data never leaves the client, but users should still be told not to paste production secrets into a shared instance.
Updating, backups, and common pitfalls
Update to the latest image:
cd /opt/it-tools
docker compose pull
docker compose up -d
docker image prune -f
The container is stateless, so there are no volumes to back up. Keep a copy of compose.yml and .env in version control or a password manager. If you add a Caddyfile, back that up too:
tar czf it-tools-config-$(date +%F).tar.gz compose.yml .env /etc/caddy/Caddyfile
Two pitfalls worth knowing:
- Pinning
latesthides breaking changes. The upstream project ships frequently. If a new image changes the internal port or the Nginx config,docker compose pullwill silently swap it. Pin a digest or a specific tag incompose.ymlif you need stability, and test updates on a staging host first. - Client-side routing breaks with naive proxies. If your proxy serves a 404 for paths like
/jwt-parseron a hard refresh, it is not rewriting toindex.html. Caddy’sreverse_proxyhandles this because the upstream Nginx is configured for SPA fallback; if you front it with another layer, make sure that layer does not intercept unknown paths.
Finally, monitor the container with docker compose logs -f it-tools and the healthcheck status in docker compose ps. A failing healthcheck usually means the image failed to start or the internal port changed.
Measured in our sandbox run: total memory 8.2 MB (sum of per-container peaks over a 30s idle window after startup) across 1 container; largest container 8.2 MB; published port(s) 8080; HTTP probe returned 200. The run took 46.6s including the image download.
Verification: we ran this docker-compose stack in a disposable Docker environment and recorded the measurements above. They describe that run, not a guarantee for your host.