[Unit]
Description=Ollama and WebUI
[Container]
Image=ghcr.io/open-webui/open-webui:ollama
AutoUpdate=registry
ContainerName=ollama
PodmanArgs=--privileged
# Reverse proxy network
Network=caddy.network
Environment=TZ=America/New_York
AddDevice=/dev/dri/:/dev/dri/
AddDevice=nvidia.com/gpu=all
Volume=%h/services/ollama/app:/root/.ollama:Z
Volume=%h/services/ollama/webui:/app/backend/data:Z
[Service]
Restart=on-failure
TimeoutStartSec=900
[Install]
# Start by default on boot
WantedBy=default.target