Spaces:
Sleeping

Search / supervisord.conf
DunaevStudio's picture
Update supervisord.conf
de9dfa0 verified
Raw History Blame Contribute Delete
880 Bytes
[supervisord]
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
[program:redis]
command=redis-server --daemonize no --loglevel warning --maxmemory 256mb --maxmemory-policy allkeys-lru
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
priority=1
[program:searxng]
command=python -c "from searx.webapp import app; app.run(host='0.0.0.0', port=8080, debug=False)"
directory=/app/searxng
environment=SEARXNG_SETTINGS_PATH="/app/searxng-settings.yml",SEARXNG_SECRET="change-me-to-random-string-123"
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
priority=2
[program:api]
command=python -m uvicorn main:app --host 0.0.0.0 --port 7860 --workers 2 --log-level info
directory=/app
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
priority=3