Created
April 1, 2025 12:45
-
-
Save MatejLach/49370c43a5d79c888f54f6e98337e1b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Ollama Service | |
After=network-online.target | |
[Service] | |
ExecStart=/usr/local/bin/ollama serve | |
User=ollama | |
Group=ollama | |
Restart=always | |
RestartSec=3 | |
Environment="OLLAMA_HOST=0.0.0.0:11434" | |
Environment=OLLAMA_KEEP_ALIVE=-1 | |
Environment="OLLAMA_ORIGINS=*" | |
Environment="OLLAMA_FLASH_ATTENTION=1" | |
[Install] | |
WantedBy=default.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment