20 lines
387 B
Text
20 lines
387 B
Text
[Unit]
|
|
Description=A local LLM server
|
|
|
|
[Container]
|
|
# keep-sorted start
|
|
ContainerName=ollama
|
|
Image=docker.io/ollama/ollama:latest
|
|
Network=ollama.network
|
|
PublishPort=11434:11434
|
|
Volume=%h/.local/share/ollama:/root/.ollama:ro,z
|
|
# keep-sorted end
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
|
|
[Service]
|
|
# keep-sorted start
|
|
ExecStartPre=mkdir -p %h/.local/share/ollama
|
|
Restart=always
|
|
# keep-sorted end
|