vps/roles/searxng/templates/docker-compose.yaml

25 lines
707 B
YAML

services:
valkey:
container_name: searxng-valkey
image: docker.io/valkey/valkey:7-alpine
restart: always
user: {{ users['searxng_valkey'] }}:{{ users['searxng_valkey'] }}
command: valkey-server --save 30 1 --loglevel warning
volumes:
- valkey:/data
searxng:
container_name: searxng
image: docker.io/searxng/searxng:latest
restart: always
environment:
- SEARXNG_BASE_URL=https://searx.{{ domain }}
- SEARXNG_SECRET={{ searxng_secrets['searxng_secret'] }}
ports:
- 127.0.0.1:{{ ports['searxng'] }}:8080
volumes:
- ./settings.yml:/etc/searxng/settings.yml
- ./limiter.toml:/etc/searxng/limiter.toml
volumes:
valkey: