Temporarily comment out cap_drop in docker-compose.yml for SearXNG service

- Commented out the cap_drop directive to allow for initial testing without dropping all capabilities, as noted in the accompanying documentation.
- Retained the entrypoint script for managing directory permissions and starting the SearXNG application, ensuring functionality remains intact during this change.
This commit is contained in:
Yury Kossakovsky
2025-05-22 13:37:08 -06:00
parent 767195b7ce
commit f11b303531

View File

@@ -346,16 +346,7 @@ services:
- SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/
- UWSGI_WORKERS=${SEARXNG_UWSGI_WORKERS:-4}
- UWSGI_THREADS=${SEARXNG_UWSGI_THREADS:-4}
entrypoint: |
sh -c "
echo 'Fixing SearXNG directory permissions...'
chown -R searxng:searxng /etc/searxng 2>/dev/null || true
chmod -R 755 /etc/searxng 2>/dev/null || true
echo 'Starting SearXNG...'
exec /usr/local/searxng/dockerfiles/docker-entrypoint.sh
"
cap_drop:
- ALL
# cap_drop: - ALL # Temporarily commented out for first run - see https://github.com/searxng/searxng-docker#note
cap_add:
- CHOWN
- SETGID