34 lines
914 B
YAML
34 lines
914 B
YAML
|
|
# HomeAI Kit — Search Stack (SearXNG)
|
||
|
|
# Private meta-search engine — searches Google, Bing, DuckDuckGo
|
||
|
|
# without tracking or ads.
|
||
|
|
#
|
||
|
|
# Setup:
|
||
|
|
# docker network create homeai-net # once, if not already created
|
||
|
|
# docker compose up -d
|
||
|
|
#
|
||
|
|
# Search UI: http://localhost:8080
|
||
|
|
# JSON API: http://localhost:8080/search?q=test&format=json
|
||
|
|
|
||
|
|
services:
|
||
|
|
searxng:
|
||
|
|
image: searxng/searxng:latest
|
||
|
|
container_name: homeai-searxng
|
||
|
|
ports:
|
||
|
|
- "${SEARXNG_PORT:-8080}:8080"
|
||
|
|
volumes:
|
||
|
|
- ../../config/searxng/settings.yml:/etc/searxng/settings.yml:ro
|
||
|
|
- ../../config/searxng/limiter.toml:/etc/searxng/limiter.toml:ro
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/healthz"]
|
||
|
|
interval: 30s
|
||
|
|
timeout: 10s
|
||
|
|
retries: 3
|
||
|
|
start_period: 15s
|
||
|
|
restart: unless-stopped
|
||
|
|
networks:
|
||
|
|
- homeai-net
|
||
|
|
|
||
|
|
networks:
|
||
|
|
homeai-net:
|
||
|
|
external: true
|