ollama-llama32-1b / supervisord.conf
Amaranath's picture
Create supervisord.conf
58673df verified
raw
history blame contribute delete
435 Bytes
[supervisord]
nodaemon=true
user=root
[program:ollama]
command=ollama serve
environment=OLLAMA_HOST=127.0.0.1:11434,OLLAMA_KEEP_ALIVE=24h
user=user
autorestart=true
stdout_logfile=/var/log/supervisor/ollama.log
stderr_logfile=/var/log/supervisor/ollama.log
[program:fastapi]
command=python app.py
directory=/app
user=user
autorestart=true
stdout_logfile=/var/log/supervisor/fastapi.log
stderr_logfile=/var/log/supervisor/fastapi.log