carloselugo.com — Docker Stack

Self-hosted infrastructure running on a single server, reverse-proxied by Caddy with automatic HTTPS.

Services

Service URL Description
Frontend carloselugo.com Personal site — Vite + nginx (multi-stage build)
Uptime Kuma uptime.carloselugo.com Uptime monitoring
Netdata metrics.carloselugo.com System metrics
ntfy ntfy.carloselugo.com Push notifications
Dozzle logs.carloselugo.com Container log viewer
Gitea git.carloselugo.com Self-hosted Git

uptime, metrics, and logs are restricted to whitelisted IPs + basic auth.

Structure

/opt/web/
├── Caddyfile               # Reverse proxy config (TLS, routing, auth)
├── docker-compose.yml      # All services
├── frontend/               # Personal site source
│   ├── Dockerfile
│   ├── src/
│   └── nginx.conf
├── ntfy/
│   └── config/
│       └── server.yml
└── dozzle/
    └── data/

Stack

  • Reverse proxy — Caddy 2 (automatic HTTPS via Let's Encrypt, HTTP/3)
  • Frontend — Vite build → nginx:alpine
  • Git — Gitea (SQLite, SSH on port 2222)
  • Monitoring — Netdata (host metrics) + Uptime Kuma (endpoint checks)
  • Notifications — ntfy (push to mobile, auth-protected)
  • Logs — Dozzle

Usage

# Start all services
docker compose up -d

# Start a single service
docker compose up -d gitea

# View logs
docker compose logs -f caddy

# Reload Caddy config without downtime
docker exec caddy caddy reload --config /etc/caddy/Caddyfile

Git workflow

Push to this repo from the server:

git remote add origin ssh://git@localhost:2222/carlitosbond/web.git
git push

From an external machine (port 2222 must be open in firewall):

git remote add origin ssh://git@git.carloselugo.com:2222/carlitosbond/web.git
git push

Notes

  • Umami analytics is disabled (commented out in docker-compose.yml) — uncomment to re-enable.
  • Netdata is pinned to CPUs 01 with low CPU priority to avoid impacting other workloads.
  • ntfy denies all access by default — users must be created with ntfy user add.
S
Description
No description provided
Readme
6 MiB
Languages
JavaScript 82.9%
HTML 7.4%
Python 5.3%
CSS 3.7%
Dockerfile 0.7%