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

30 lines
787 B
YAML

services:
redis:
container_name: searxng-redis
image: docker.io/library/redis:alpine
restart: always
user: {{ users['searxng_redis'] }}:{{ users['searxng_redis'] }}
command: redis-server --save 30 1 --loglevel warning
volumes:
- redis:/data
searxng:
container_name: searxng
image: 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
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
volumes:
redis: