fix: Mount entire searxng directory instead of individual files

Simple and robust solution:
- Mount ./searxng:/etc/searxng:rw (entire directory)
- No entrypoint/command overrides needed
- Both settings.yml and limiter.toml are included
- SearXNG uses its default entrypoint
This commit is contained in:
Claude committed 2025-11-22 13:27:48 +00:00
1 parent 933cb2e66f
commit 861f38b984
1 file changed
+1 -14
+1 -14
View File
@@ -61,20 +61,7 @@ services:
- SEARXNG_BASE_URL=http://searxng:8080
- SEARXNG_SECRET=priceflow-searxng-secret
volumes:
- ./searxng/settings.yml:/etc/searxng/settings.yml:ro
entrypoint: /bin/sh
command:
- -c
- |
rm -rf /etc/searxng/limiter.toml
cat > /etc/searxng/limiter.toml << 'EOF'
[botdetection.ip_limit]
link_token = false
[botdetection.ip_lists]
pass_ip = ["0.0.0.0/0", "127.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "10.0.0.0/8", "::/0"]
block_ip = []
EOF
exec /usr/local/searxng/dockerfiles/docker-entrypoint.sh
- ./searxng:/etc/searxng:rw
networks:
- nginx_default