Files
kochwas/docker-compose.yml

48 lines
1.3 KiB
YAML
Raw Permalink Normal View History

# Dev-Setup: nur SearXNG läuft im Container; Kochwas selbst startest du
# lokal mit `npm run dev`. SEARXNG_URL=http://localhost:8888 wird von der
# App automatisch erkannt (oder via .env gesetzt).
#
# Starten:
# cp .env.example .env # einmalig, Werte anpassen
# docker compose up -d
# npm run dev
#
# Der Init-Container expandiert ${BRAVE_API_KEY} und ${SEARXNG_SECRET} aus
# der .env genau wie prod — damit testet man lokal mit dem gleichen Flow.
services:
searxng-init:
image: searxng/searxng:latest
restart: 'no'
user: root
entrypoint:
- /bin/sh
- -c
- |
set -e
python3 -c "import os; open('/out/settings.yml','w').write(os.path.expandvars(open('/in/settings.yml').read()))"
volumes:
- ./searxng:/in:ro
- searxng-config:/out
environment:
- FORCE_OWNERSHIP=false
- BRAVE_API_KEY=${BRAVE_API_KEY:-}
- SEARXNG_SECRET=${SEARXNG_SECRET:-dev-secret-change-me}
searxng:
image: searxng/searxng:latest
ports:
- '8888:8080'
volumes:
- searxng-config:/etc/searxng
environment:
- BASE_URL=http://localhost:8888/
- INSTANCE_NAME=kochwas-search-dev
depends_on:
searxng-init:
condition: service_completed_successfully
restart: unless-stopped
volumes:
searxng-config: