# Running Local LLMs & 24/7 AI Workers Safely with Docker & Hardened Systemd

> **TL;DR**: How to deploy Ollama or 24/7 Python AI workers on a low-memory VPS using non-root Systemd ProtectSystem=strict, MemoryMax cgroups, and Docker resource caps.
> **Source**: https://ai.yevrix.com/articles/ollama-local-llm-docker-systemd-deploy

## 1. Why Every 24/7 AI Worker Needs Hard Resource Isolation

Whether running **Ollama** locally or hosting an autonomous Python daemon on a 2GB VPS, two risks dominate production incidents:
- Memory leaks triggering host-wide OOM kills that knock out reverse proxies or databases.
- Running scripts as `root` with unrestricted write access to the entire OS filesystem.

## 2. Quick Local Ollama OpenAI-Compatible Test

...

> Full engineering guide unlocked at https://ai.yevrix.com/articles/ollama-local-llm-docker-systemd-deploy
