Searxng —— 开源搜索引擎

一个基于 Python 的完全开源免费搜索引擎平台,为你提供来自 Google、Bing、Yahoo 等 70 多种各大视频、图片、搜索、磁力等网站结果展示,并对搜索结果进行优化,同时不会存储你的任何搜索信息。


Docker-Compose

创建 docker-compose.yml

1
nano docker-compose.yml
  1. "19723:8080"19723 可以修改为你所需要的端口

  2. SEARXNG_BASE_URL=https://rahn.tophttps://rahn.top 修改为你搜索引擎的网站

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3.7'

services:

redis:
container_name: redis
image: "redis:alpine"
command: redis-server --save "" --appendonly "no"
restart: unless-stopped
networks:
- searxng
tmpfs:
- /var/lib/redis
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE

searxng:
container_name: searxng
image: searxng/searxng:latest
restart: unless-stopped
networks:
- searxng
ports:
- "19723:8080"
volumes:
- ./Searxng:/etc/searxng:rw
environment:
- SEARXNG_BASE_URL=https://rahn.top
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
1
docker-compose up -d

打开 19723 端口

1
ufw allow 19723/tcp

官方: https://docs.searxng.org/

参考: https://blog.laoda.de/archives/docker-compose-install-searxng

Github: https://github.com/searxng/searxng-docker/tree/master