Unverified Commit a1197bcf authored by Julian Raufelder's avatar Julian Raufelder Committed by GitHub
Browse files

Migrate from searx to searxng because searx-docker is no more maintained (#28)



* Migrate from searx to searxng because searx-docker is no more maintained

* Add test config for SearXNG

* Fix test config

* Add SEARXNG_IMAGE_VERSION to .env.default

* Remove MORTY* vars from .env.default

* Apply suggestions from code review

* Fix test config

* Apply suggestions from code review

Co-authored-by: default avatarTom Moulard <tom@moulard.org>

* Fix test config

Co-authored-by: default avatarTom Moulard <tom@moulard.org>
parent 864403e7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -9,8 +9,6 @@ JACKETT_IMAGE_VERSION=
JACKETT_PUID=
KIBANA_IMAGE_VERSION=
LOGSTASH_IMAGE_VERSION=
MORTY_IMAGE_VERSION=
MORTY_KEY=
MUMBLE_IMAGE_VERSION=
MUMBLE_SUPERUSER_PASSWORD=
NEXTCLOUD_IMAGE_VERSION=
@@ -21,7 +19,7 @@ NEXTCLOUD_MYSQL_USER=
NGINX_IMAGE_VERSION=
REMOTELY_IMAGE_VERSION=
ROOT_EMAIL=
SEARX_IMAGE_VERSION=
SEARXNG_IMAGE_VERSION=
SITE=
TOR_CONTACT_GPG_FINGERPRINT=
TOR_RELAY_BANDWIDTH_BURST=

searx/docker-compose.searx.yml

deleted100644 → 0
+0 −38
Original line number Diff line number Diff line
version: '2'

services:
  searx:
    image: searx/searx:${SEARX_IMAGE_VERSION:-latest}
    command: -f
    volumes:
      - './searx/searx/:/etc/searx:rw'
    networks:
      - 'srv'
    healthcheck:
      test: ["CMD-SHELL", "wget -q --spider --proxy=off localhost:8080/healthz || exit 1"]
    restart: always
    environment:
      - 'BIND_ADDRESS=0.0.0.0:8080'
      - 'BASE_URL=https://searx.${SITE:-localhost}/'
      - 'MORTY_URL=http://morty/'
      - 'MORTY_KEY=${MORTY_KEY:-VGhpcyBrZXkgaXMgTk9UIHNlY3VyZQ==}'
    depends_on:
      - morty
    labels:
      - 'traefik.enable=true'
      - 'traefik.http.routers.searx.rule=Host(`searx.${SITE:-localhost}`)'
      - 'traefik.http.services.searx.loadbalancer.server.port=8080'

  morty:
    image: dalf/morty:${MORTY_IMAGE_VERSION:-latest}
    command: -listen 0.0.0.0:3000 -timeout 6 -ipv6
    networks:
      - 'srv'
    restart: always
    environment:
      - 'MORTY_KEY=${MORTY_KEY:-VGhpcyBrZXkgaXMgTk9UIHNlY3VyZQ==}'
    labels:
      - 'traefik.enable=true'
      - 'traefik.http.routers.morty.rule=Host(`morty.${SITE:-localhost}`)'
      - 'traefik.http.services.morty.loadbalancer.server.port=3000'
      - 'traefik.http.routers.morty.middlewares=basic_auth@docker'
+0 −0

File moved.

+6 −0
Original line number Diff line number Diff line
# searx
# searxng

https://searx.laquadrature.net
https://searxng.org/

searx - a privacy-respecting, hackable metasearch engine. Advanced settings.
searxng - a privacy-respecting, hackable metasearch engine. Advanced settings.
general files images it map music news science social media videos
+34 −0
Original line number Diff line number Diff line
version: '2'

services:
  searxng:
    image: searxng/searxng:${SEARXNG_IMAGE_VERSION:-latest}
    volumes:
      - './searxng/searxng/:/etc/searxng:rw'
    networks:
      - 'srv'
    healthcheck:
      test: ["CMD-SHELL", "wget -q --spider --proxy=off localhost:8080/healthz || exit 1"]
    restart: always
    environment:
      - LIMITER=true
      - REDIS_URL=redis://searxng-redis:6379/0
      - IMAGE_PROXY=true
      - SEARXNG_BASE_URL=https://searx.${SITE:-localhost}/'
    depends_on:
      - searxng-redis
    labels:
      - 'traefik.enable=true'
      - 'traefik.http.routers.searxng.rule=Host(`searx.${SITE:-localhost}`)'
      - 'traefik.http.services.searxng.loadbalancer.server.port=8080'

  searxng-redis:
    image: redis:6.0-alpine
    restart: always
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
    command: redis-server --save "" --appendonly "no"
    tmpfs:
      - /var/lib/redis
    labels:
      - 'traefik.enable=false'
Loading