mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-07-18 10:54:01 +00:00
first commit
This commit is contained in:
14
searxng/.env.example
Normal file
14
searxng/.env.example
Normal file
@@ -0,0 +1,14 @@
|
||||
# By default listen on https://localhost
|
||||
# To change this:
|
||||
# * uncomment SEARXNG_HOSTNAME, and replace <host> by the SearXNG hostname
|
||||
# * uncomment LETSENCRYPT_EMAIL, and replace <email> by your email (require to create a Let's Encrypt certificate)
|
||||
|
||||
SEARXNG_HOSTNAME=
|
||||
# LETSENCRYPT_EMAIL=<email>
|
||||
|
||||
# Optional:
|
||||
# If you run a very small or a very large instance, you might want to change the amount of used uwsgi workers and threads per worker
|
||||
# More workers (= processes) means that more search requests can be handled at the same time, but it also causes more resource usage
|
||||
|
||||
# SEARXNG_UWSGI_WORKERS=4
|
||||
# SEARXNG_UWSGI_THREADS=4
|
2
searxng/data/.gitignore
vendored
Normal file
2
searxng/data/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/searxng/*
|
||||
/valkey-data2/*
|
42
searxng/docker-compose.yml
Normal file
42
searxng/docker-compose.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
networks:
|
||||
searxng:
|
||||
external: false
|
||||
caddy:
|
||||
name: caddy
|
||||
driver: bridge
|
||||
external: true
|
||||
|
||||
services:
|
||||
redis:
|
||||
container_name: searxng_redis
|
||||
image: docker.io/valkey/valkey:8-alpine
|
||||
command: valkey-server --save 30 1 --loglevel warning
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- searxng
|
||||
volumes:
|
||||
- ./data/valkey-data2:/data
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1m"
|
||||
max-file: "1"
|
||||
|
||||
searxng:
|
||||
container_name: searxng
|
||||
image: docker.io/searxng/searxng:2024.12.1-0245e82bd
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- searxng
|
||||
- caddy
|
||||
volumes:
|
||||
- ./data/searxng:/etc/searxng:rw
|
||||
environment:
|
||||
- SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/
|
||||
- UWSGI_WORKERS=${SEARXNG_UWSGI_WORKERS:-4}
|
||||
- UWSGI_THREADS=${SEARXNG_UWSGI_THREADS:-4}
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1m"
|
||||
max-file: "1"
|
Reference in New Issue
Block a user