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

36 lines
870 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
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
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: