32 lines
760 B
Plaintext
32 lines
760 B
Plaintext
[Unit]
|
|
Description=An Open Webui Frontend for Local AI Services for Guests
|
|
|
|
[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-guest:/app/backend/data
|
|
|
|
# WEBUI_SECRET_KEY is required to prevent logout on Restart
|
|
EnvironmentFile=/home/ai/.env/open-webui-env-guest
|
|
|
|
# ai-external is the primary network
|
|
Network=ai-external.network
|
|
Network=ai-internal.network
|
|
|
|
# open-webui
|
|
PublishPort=8081:8081/tcp
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
# Extend Timeout to allow time to pull the image
|
|
TimeoutStartSec=900
|
|
|
|
[Install]
|
|
# Start by default on boot
|
|
WantedBy=multi-user.target default.target |