Overview
This page documents the Podman Compose deployment for the LightRAG stack. This approach has been retired in favor of Quadlet, but is retained here for historical reference and comparison.
Current Status: Quadlet is now the recommended deployment method. See Podman Quadlet for the current deployment guide.
Compose Stack
The compose stack was used during the early deployment phases (Era 0 through G). It provided easy temporary configuration but was replaced by Quadlet for permanent deployment.
File Layout
~/.config/containers/systemd/
├── docling.build # Build unit
├── docling.container # Docling service
├── lightrag.container # LightRAG service
└── rag.network # Bridge network
Compose Deployment
Activation
mkdir -p ~/.config/containers/systemd
# copy unit files there
podman compose down # if any old containers are running
systemctl --user daemon-reload
systemctl --user start docling.service lightrag.service
loginctl enable-linger ai # boot-start without loginPodman Compose vs. Quadlet
| Feature | Podman Compose | Quadlet |
|---|---|---|
| Persistence | Temporary, requires manual restart | Permanent, systemd-managed |
| Configuration | Compose YAML | systemd unit files |
| Boot-start | Requires enable | Automatic with loginctl enable-linger |
| Best for | Testing, temporary setups | Production, long-running services |
Why Quadlet was chosen: Quadlet units are permanent, integrate with systemd, and provide better boot-start persistence without requiring manual intervention.
RAG Stack Files
All files for the RAG stack are available at GitHub RAG Archive.
This includes:
compose.yml- Original compose configurationlightrag.container- LightRAG Quadlet unitdocling.container- Docling Quadlet unitdocling.build- Docling build unitrag.network- Bridge network definitionllama-server.service- llama.cpp router service.env- Environment configurationContainerfile- Docling patch source
Related Documentation
- Auth and API Keys - Authentication configuration
- Podman Quadlet - Current deployment method
- LightRAG Stack - Comprehensive guide