Tested guides for running your own stack

Self-hosted AI, Docker, Nginx and databases on a small Linux server, with the commands, the real output and the machine they ran on.

Start the learning path → Browse guides

First guide, in review

Tested
2026-11-17
Server
Hetzner cx33, 4 vCPU, 7.6 GiB, no GPU
OS
Ubuntu 24.04.4 LTS
Runtime
Ollama 0.40.16
Result
llama3.2:1b at 15.87 tok/s
Photo of Amir Ariff

Written and tested by Amir Ariff · GitHub

Learning path

Nine guides in order, from a first container to a stack you can monitor and repair.

Start here

A first container, a local model, and how to read what your server is doing.

  1. Install Docker Compose and run your first stack Planned
  2. Run an LLM locally with Ollama on Linux In review
  3. Read top output on Linux Planned

Make it yours

Serve a chat UI through Nginx with TLS, and back up PostgreSQL.

  1. Install Open WebUI and connect it to Ollama Planned
  2. Use Nginx as a reverse proxy with TLS Planned
  3. Back up PostgreSQL with pg_dump and restore it Planned

Keep it running

Manage and monitor the stack, then harden the server.

  1. Install Portainer and secure it Planned
  2. Install Grafana and Prometheus with Docker Compose Planned
  3. Harden a fresh Linux server: SSH, firewall, updates Planned

Each guide has three levels: Naked eye to get it running, Telescope to understand it, Deep field to go further.

Six hubs, one stack

Each hub covers one layer of a server you run yourself.

Linux Docker Nginx Databases Self-hosted AI Observability

Latest observation logs

Follow new guides via RSS

Older archive: programming articles restored from the Internet Archive. These are not tested guides and are being cut down.

JavaScript, PHP, C++, Java, Python, C#, Android, ASP.NET, Golang, MySQL, Server, Linux, JSP, Oracle, iOS, Redis, MongoDB, Swift, PostgreSQL, Nginx