This commit is contained in:
myve 2024-08-10 09:07:11 +00:00
commit e650d80b1e
58 changed files with 1747 additions and 0 deletions

10
searxng/.env Normal file
View file

@ -0,0 +1,10 @@
# Environment file for docker-compose.yaml
# Generate new passwords with:
# openssl rand -hex 32
# Fill in registry
REGISTRY=
# Searx
SEARX_PORT=
SEARX_URL=

View file

@ -0,0 +1,46 @@
services:
# searx
searxng:
image: ${REGISTRY}/searxng
container_name: searxng
restart: unless-stopped
ports:
- ${SEARX_PORT:-8080}:8080
environment:
SEARXNG_BASE_URL: ${SEARX_URL:-http://localhost:}
volumes:
- ./settings:/etc/searxng:rw
- ./searxng.png:/usr/local/searxng/searx/static/themes/simple/img/searxng.png
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
logging:
driver: json-file
options:
max-size: 1m
max-file: 1
networks:
- searxng
searxng-redis:
image: ${REGISTRY}/valkey
container_name: searxng-redis
restart: unless-stopped
command: redis-server --save 30 1 --loglevel warning
tmpfs:
- /var/lib/redis
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
networks:
- searxng
networks:
searxng:
external: false