version: "3.7"

services:
  app_proxy:
    environment:
      APP_HOST: searxng-web
      APP_PORT: 8080

  web:
    image: ghcr.io/searxng/searxng:2026.4.7-08ef7a63d@sha256:6a89a150d0163877caab1982b7a20d0a03fd4b39401a0d3f26f61ad205949442
    container_name: searxng-web # Avoid underscores in hostname (Werkzeug rejects them)
    restart: on-failure
    environment:
      SEARXNG_SECRET: ${APP_SEED}
      SEARXNG_LIMITER: "false" # Disable bot detection — container-to-container calls lack proxy headers
    volumes:
      - ${APP_DATA_DIR}/data/config:/etc/searxng
      - ${APP_DATA_DIR}/data/cache:/var/cache/searxng
