[Unit]
Description=An Open Webui Frontend for Local AI Services

[Container]
# Shared AI external pod
Pod=ai-external.pod

# Open Webui base image
Image=ghcr.io/open-webui/open-webui:main

# Nothing too complicated here. Open Webui will basically configure itself.
Volume=open-webui-data:/app/backend/data

# WEBUI_SECRET_KEY is required to prevent logout on Restart
EnvironmentFile=/home/ai/.env/open-webui-env

[Service]
Restart=always
# Extend Timeout to allow time to pull the image
TimeoutStartSec=900

[Install]
# Start by default on boot
WantedBy=multi-user.target default.target