Add searx
This commit is contained in:
parent
0d1d7dc09d
commit
8163931183
3 changed files with 48 additions and 2 deletions
46
docker/searx/docker-compose.toml
Normal file
46
docker/searx/docker-compose.toml
Normal file
|
@ -0,0 +1,46 @@
|
|||
version = "3.7"
|
||||
|
||||
[services]
|
||||
|
||||
[services.searx]
|
||||
container_name = "searx"
|
||||
image = "searxng/searxng:latest"
|
||||
networks = ["searx", "proxy"]
|
||||
volumes = ["/docker/searx:/etc/searxng:rw"]
|
||||
environment = ["SEARXNG_BASE_URL=https://searx.korhonen.cc/"]
|
||||
cap_drop = ["ALL"]
|
||||
cap_add = ["CHOWN", "SETGID", "SETUID", "DAC_OVERRIDE"]
|
||||
labels = [
|
||||
"traefik.enable=true",
|
||||
"traefik.docker.network=proxy",
|
||||
"traefik.http.routers.searx-redirect.entrypoints=http",
|
||||
"traefik.http.routers.searx-redirect.rule=Host(`searx.korhonen.cc`)",
|
||||
"traefik.http.routers.searx-redirect.middlewares=http2https@file",
|
||||
"traefik.http.routers.searx.entrypoints=https",
|
||||
"traefik.http.routers.searx.middlewares=secHeaders@file,compress@file",
|
||||
"traefik.http.routers.searx.rule=Host(`searx.korhonen.cc`)",
|
||||
"traefik.http.routers.searx.service=searx",
|
||||
"traefik.http.services.searx.loadbalancer.server.port=8080",
|
||||
]
|
||||
|
||||
[services.searx.logging]
|
||||
driver = "json-file"
|
||||
|
||||
[services.searx.logging.options]
|
||||
max-size = "1m"
|
||||
max-file = "1"
|
||||
|
||||
[services.redis]
|
||||
container_name = "redis-searx"
|
||||
image = "redis:alpine"
|
||||
command = "redis-server --save \"\" --appendonly \"no\""
|
||||
networks = ["searx"]
|
||||
tmpfs = ["/var/lib/redis"]
|
||||
cap_drop = ["ALL"]
|
||||
cap_add = ["SETGID", "SETUID", "DAC_OVERRIDE"]
|
||||
|
||||
[networks.searx.ipam]
|
||||
driver = "default"
|
||||
|
||||
[networks.proxy]
|
||||
external = true
|
Loading…
Add table
Add a link
Reference in a new issue