2023-05-29 14:08:34 +05:30
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
restart: unless-stopped
|
|
|
|
container_name: redis
|
|
|
|
image: "redis:alpine"
|
|
|
|
command: redis-server --save "" --appendonly "no"
|
|
|
|
networks:
|
|
|
|
- searxng
|
|
|
|
tmpfs:
|
|
|
|
- /var/lib/redis
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
|
|
|
- DAC_OVERRIDE
|
|
|
|
|
|
|
|
searxng:
|
|
|
|
restart: unless-stopped
|
|
|
|
container_name: searxng
|
|
|
|
image: searxng/searxng:latest
|
|
|
|
networks:
|
|
|
|
- searxng
|
|
|
|
ports:
|
2023-07-19 21:23:52 +05:30
|
|
|
- "8081:8080"
|
2023-05-29 14:08:34 +05:30
|
|
|
volumes:
|
|
|
|
- ./searxng:/etc/searxng:rw
|
|
|
|
- ./extras.conf:/etc/searxng/settings.yml:rw
|
|
|
|
environment:
|
2023-07-19 19:50:55 +05:30
|
|
|
- SEARXNG_BASE_URL=https://{% if server_prefix == 'eu' %}search.projectsegfau.lt{%else%}search.{{inventory_hostname}}.projectsegfau.lt{%endif%}/
|
2023-05-29 14:08:34 +05:30
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
|
|
|
- DAC_OVERRIDE
|
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "1m"
|
|
|
|
max-file: "1"
|
|
|
|
networks:
|
|
|
|
searxng:
|
|
|
|
ipam:
|
|
|
|
driver: default
|