From 97ee34f1a1ac49302624df2ba90f4c568f1df3af Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 4 Oct 2024 06:53:14 +0300 Subject: [PATCH] Added searxng --- public/svgs/searxng.svg | 56 ++++++++++++++++++++++++ templates/compose/searxng.yaml | 78 ++++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+) create mode 100644 public/svgs/searxng.svg create mode 100644 templates/compose/searxng.yaml diff --git a/public/svgs/searxng.svg b/public/svgs/searxng.svg new file mode 100644 index 000000000..b94fe3728 --- /dev/null +++ b/public/svgs/searxng.svg @@ -0,0 +1,56 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/templates/compose/searxng.yaml b/templates/compose/searxng.yaml new file mode 100644 index 000000000..30d5e923b --- /dev/null +++ b/templates/compose/searxng.yaml @@ -0,0 +1,78 @@ +# documentation: https://docs.searxng.org +# slogan: SearXNG is a free internet metasearch engine which aggregates results from more than 70 search services. +# tags: search, google, engine, images, documents, rss, proxy, news, web, api +# logo: svgs/searxng.svg +# port: 8080 + +version: "3" + +volumes: + redis_data: null + +services: + searxng: + image: searxng/searxng + restart: always + depends_on: + redis: + condition: service_healthy + environment: + - SERVICE_FQDN_SEARXNG_8080 + - INSTANCE_NAME=coolify + - BASE_URL=${SERVICE_FQDN_SEARXNG_8080} + - SEARXNG_URL=${SERVICE_FQDN_SEARXNG_8080} + - SEARXNG_BIND_ADDRESS=0.0.0.0 + - SEARXNG_SECRET=${SERVICE_PASSWORD_SEARXNGSECRET} + - SEARXNG_REDIS_URL=redis://redis:6379/0 + healthcheck: + test: + - CMD + - wget + - "-q" + - "--spider" + - "http://127.0.0.1:8080/healthz" + interval: 5s + timeout: 5s + retries: 3 + volumes: + - type: bind + source: ./settings.yml + target: /etc/searxng/settings.yml + content: | + # see https://docs.searxng.org/admin/settings/settings.html#settings-use-default-settings + use_default_settings: true + server: + limiter: false + image_proxy: true + search: + formats: + - html + - csv + - json + - rss + ui: + static_use_hash: true + - type: bind + source: ./limiter.toml + target: /etc/searxng/limiter.toml + content: | + # This configuration file updates the default configuration file + # See https://github.com/searxng/searxng/blob/master/searx/botdetection/limiter.toml + + [botdetection.ip_limit] + # activate link_token method in the ip_limit method + link_token = true + + redis: + image: "redis:7" + restart: always + volumes: + - "redis_data:/data" + healthcheck: + test: + - CMD + - redis-cli + - ping + interval: 5s + timeout: 5s + retries: 3