mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 00:19:39 +02:00
chore(dev): wire SearXNG + mana-search into dev:mana:all
News Research's web-search backend (mana-search → SearXNG) was missing
from the standard dev stack — a "Finden" click failed with a connect
error until the standalone services/mana-search/docker-compose.dev.yml
was started by hand.
- docker-compose.dev.yml: add `searxng` (Port 8080), config mounted
read-only from the service tree. Reuses the shared mana-redis,
no second cache instance needed.
- package.json: docker:up + docker🆙infra include searxng;
dev:mana:servers spawns dev:search alongside the other 6 servers;
dev:search now passes PORT=3021 + REDIS auth so it talks to the
shared password-protected mana-redis instead of defaulting to a
no-auth localhost:6379
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fdd643f4b4
commit
115afea519
2 changed files with 29 additions and 4 deletions
|
|
@ -44,6 +44,31 @@ services:
|
|||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
# SearXNG — meta-search engine used by mana-search.
|
||||
# Backend for web-search features (e.g. News Research feed discovery).
|
||||
# Config mounted read-only from the service's own tree so it stays in
|
||||
# sync with the production compose.
|
||||
searxng:
|
||||
image: searxng/searxng:latest
|
||||
container_name: mana-searxng
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./services/mana-search/searxng/settings.yml:/etc/searxng/settings.yml:ro
|
||||
- ./services/mana-search/searxng/limiter.toml:/etc/searxng/limiter.toml:ro
|
||||
environment:
|
||||
SEARXNG_BASE_URL: http://localhost:8080
|
||||
SEARXNG_SECRET: ${SEARXNG_SECRET:-dev-secret-change-in-production}
|
||||
ports:
|
||||
- "8080:8080"
|
||||
networks:
|
||||
- mana-network
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/healthz"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
|
||||
# Mailpit — fake SMTP server for local development.
|
||||
# Catches every outbound mail and exposes them via web UI + REST API.
|
||||
# Point any service that sends email at SMTP_HOST=mailpit, SMTP_PORT=1025
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue