diff --git a/.env b/.env index fc0f666..f1483b0 100644 --- a/.env +++ b/.env @@ -5,3 +5,10 @@ # SEARXNG_HOSTNAME= # LETSENCRYPT_EMAIL= + +# Optional: +# If you run a very small or a very large instance, you might want to change the amount of used uwsgi workers and threads per worker +# More workers (= processes) means that more search requests can be handled at the same time, but it also causes more resource usage + +# SEARXNG_UWSGI_WORKERS=4 +# SEARXNG_UWSGI_THREADS=4 diff --git a/docker-compose.yaml b/docker-compose.yaml index cda4079..b42926a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -56,6 +56,8 @@ services: - ./searxng:/etc/searxng:rw environment: - SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/ + - UWSGI_WORKERS=${SEARXNG_UWSGI_WORKERS:-4} + - UWSGI_THREADS=${SEARXNG_UWSGI_THREADS:-4} cap_drop: - ALL cap_add: