feat(searxng): 添加Caddy配置文件

添加stack.yml用于定义SearXNG和Redis的docker-compose服务配置
添加Caddyfile作为反向代理配置,包含安全头设置和缓存策略
This commit is contained in:
cnphpbb
2025-09-08 20:27:13 +08:00
parent 02015b03c9
commit da28164a2c
2 changed files with 93 additions and 2 deletions

36
searxng/stack.yml Normal file
View File

@@ -0,0 +1,36 @@
# mkdir -pv /data/volumes/searxng/{redis-data,etc-searxng}
# pull:: docker compose --env-file ./searxng/env.cfg -f ./searxng/stack.yml pull
# Run:: docker compose --env-file ./searxng/env.cfg -f ./searxng/stack.yml up -d
services:
redis:
image: ${Redis_TAG}
container_name: redis
restart: unless-stopped
command: valkey-server --save 30 1 --loglevel warning
networks:
- searxng
volumes:
- ${Volumes_PATH}/redis-data:/data
searxng:
image: ${SearXNG_TAG}
container_name: searxng
restart: unless-stopped
depends_on:
- redis
environment:
- SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/
- UWSGI_WORKERS=${SEARXNG_UWSGI_WORKERS:-4}
- UWSGI_THREADS=${SEARXNG_UWSGI_THREADS:-4}
ports:
- 8760:8080
networks:
- searxng
volumes:
- ./searxng:/etc/searxng:rw
- ${Volumes_PATH}/searxng-data:/var/cache/searxng:rw
networks:
searxng: