server-dotfiles/searxng/docker-compose.yml

49 lines
838 B
YAML

version: '3.7'
services:
redis:
container_name: redis
image: redis:7-alpine
command: redis-server --save "" --appendonly "no"
restart: unless-stopped
networks:
- searxng
tmpfs:
- /var/lib/redis
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
searxng:
container_name: searxng
image: searxng/searxng:2023.10.13-b013cbb4c
restart: unless-stopped
networks:
- searxng
- proxy
volumes:
- /srv/docker/searxng:/etc/searxng:rw
env_file:
- env-searxng
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
networks:
searxng:
ipam:
driver: default
proxy:
external: true