vps/searxng/docker-compose.yaml

49 lines
929 B
YAML

services:
redis:
container_name: searxng_redis
image: docker.io/library/redis:alpine
restart: always
command: redis-server --save 30 1 --loglevel warning
networks:
- searxng
volumes:
- redis-data:/data
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
searxng:
container_name: searxng
image: searxng/searxng:latest
restart: always
networks:
- searxng
ports:
- "[::1]:8083:8080"
volumes:
- ./settings.yml:/etc/searxng/settings.yml
- ./limiter.toml:/etc/searxng/limiter.toml
environment:
- SEARXNG_BASE_URL=https://searx.viyurz.fr/
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
networks:
searxng:
ipam:
driver: default
volumes:
redis-data: