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

37 lines
860 B
YAML
Raw Normal View History

2023-11-22 17:55:29 +01:00
services:
redis:
container_name: searxng-redis
image: docker.io/library/redis:alpine
restart: always
2024-02-17 19:01:04 +01:00
user: {{ users['searxng_redis'] }}:{{ users['searxng_redis'] }}
command: redis-server --save 30 1 --loglevel warning
volumes:
2023-12-05 22:05:41 +01:00
- redis:/data
searxng:
container_name: searxng
image: searxng/searxng:latest
restart: always
2023-11-22 17:55:29 +01:00
cap_drop:
- ALL
cap_add:
2023-12-05 22:05:41 +01:00
- CHOWN
2023-11-22 17:55:29 +01:00
- SETGID
- SETUID
2023-12-05 22:05:41 +01:00
environment:
2024-02-17 19:01:04 +01:00
- SEARXNG_BASE_URL=https://searx.{{ domain }}
- SEARXNG_SECRET={{ searxng_secrets['searxng_secret'] }}
2023-11-22 17:55:29 +01:00
ports:
2024-02-17 19:01:04 +01:00
- {{ ports['searxng'] }}:8080
2023-11-22 17:55:29 +01:00
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:
2023-12-05 22:05:41 +01:00
redis: