docker-compose.yaml 1020 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. services:
  2. redis:
  3. image: valkey/valkey:8-alpine
  4. container_name: searxng-redis
  5. restart: unless-stopped
  6. command: valkey-server --save 30 1 --loglevel warning
  7. volumes:
  8. - /storage/searxng/redis:/data
  9. networks:
  10. - searxng
  11. cap_drop:
  12. - ALL
  13. cap_add:
  14. - SETGID
  15. - SETUID
  16. - DAC_OVERRIDE
  17. searxng:
  18. image: searxng/searxng:latest
  19. container_name: searxng
  20. restart: unless-stopped
  21. ports:
  22. - "${SEARXNG_PORT:-8080}:8080"
  23. volumes:
  24. - /storage/searxng/config:/etc/searxng
  25. environment:
  26. - SEARXNG_BASE_URL=http://${SEARXNG_HOSTNAME:-localhost}:${SEARXNG_PORT:-8080}/
  27. - UWSGI_WORKERS=${UWSGI_WORKERS:-4}
  28. - UWSGI_THREADS=${UWSGI_THREADS:-4}
  29. networks:
  30. - searxng
  31. cap_drop:
  32. - ALL
  33. cap_add:
  34. - CHOWN
  35. - SETGID
  36. - SETUID
  37. depends_on:
  38. - redis
  39. logging:
  40. driver: json-file
  41. options:
  42. max-size: "10m"
  43. max-file: "3"
  44. networks:
  45. searxng:
  46. driver: bridge