2023-05-29 14:08:34 +05:30
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
restart: unless-stopped
|
|
|
|
container_name: redis
|
2023-11-28 23:11:50 +05:30
|
|
|
image: docker.io/library/redis:alpine
|
|
|
|
command: redis-server --save 30 1 --loglevel warning
|
2023-05-29 14:08:34 +05:30
|
|
|
networks:
|
|
|
|
- searxng
|
2023-11-29 14:42:20 +05:30
|
|
|
volumes:
|
2023-11-28 23:11:50 +05:30
|
|
|
- redis-data:/data
|
2023-05-29 14:08:34 +05:30
|
|
|
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
|
2023-11-28 23:11:50 +05:30
|
|
|
|
|
|
|
volumes:
|
2023-11-29 14:42:20 +05:30
|
|
|
redis-data:
|