20 lines
366 B
Plaintext
20 lines
366 B
Plaintext
[Unit]
|
|
Description=An Ollama Server
|
|
|
|
[Container]
|
|
Pod=ai.pod
|
|
Image=docker.io/ollama/ollama:0.13.5
|
|
Volume=ollama:/root/.ollama
|
|
AddDevice=/dev/kfd
|
|
AddDevice=/dev/dri
|
|
Environment=OLLAMA_VULKAN=1
|
|
|
|
[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
|