Amaranath commited on
Commit
4be11c5
·
verified ·
1 Parent(s): 6338617

Create supervisord.conf

Browse files
Files changed (1) hide show
  1. supervisord.conf +19 -0
supervisord.conf ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [supervisord]
2
+ nodaemon=true
3
+ user=root
4
+
5
+ [program:ollama]
6
+ command=ollama serve
7
+ environment=OLLAMA_HOST=127.0.0.1:11434,OLLAMA_KEEP_ALIVE=24h
8
+ user=user
9
+ autorestart=true
10
+ stdout_logfile=/var/log/supervisor/ollama.log
11
+ stderr_logfile=/var/log/supervisor/ollama.log
12
+
13
+ [program:fastapi]
14
+ command=python app.py
15
+ directory=/app
16
+ user=user
17
+ autorestart=true
18
+ stdout_logfile=/var/log/supervisor/fastapi.log
19
+ stderr_logfile=/var/log/supervisor/fastapi.log