Remove dedicated redis and give searx it's own redis
This commit is contained in:
parent
9169ee5b8c
commit
98846fc48b
2 changed files with 8 additions and 19 deletions
|
@ -1,16 +0,0 @@
|
||||||
[services.redis]
|
|
||||||
image = "redis:alpine"
|
|
||||||
container_name = "redis"
|
|
||||||
user = "root"
|
|
||||||
command = "redis-server /etc/redis.conf"
|
|
||||||
restart = "unless-stopped"
|
|
||||||
volumes = ["/docker/redis/redis.conf:/etc/redis.conf", "redis_temp:/tmp/redis"]
|
|
||||||
|
|
||||||
[services.redis_temp]
|
|
||||||
image = "busybox:stable"
|
|
||||||
container_name = "redis_temp"
|
|
||||||
command = "chmod -R 777 /tmp/redis"
|
|
||||||
volumes = ["redis_temp:/tmp/redis"]
|
|
||||||
|
|
||||||
[volumes.redis_temp]
|
|
||||||
external = true
|
|
|
@ -5,7 +5,6 @@ restart = "unless-stopped"
|
||||||
networks = ["searx", "proxy"]
|
networks = ["searx", "proxy"]
|
||||||
volumes = [
|
volumes = [
|
||||||
"/docker/searx:/etc/searxng",
|
"/docker/searx:/etc/searxng",
|
||||||
"redis_temp:/tmp/redis",
|
|
||||||
#"/docker/searx/logo.png:/usr/local/searxng/searx/static/themes/simple/img/searxng.png:ro"
|
#"/docker/searx/logo.png:/usr/local/searxng/searx/static/themes/simple/img/searxng.png:ro"
|
||||||
]
|
]
|
||||||
environment = ["SEARXNG_BASE_URL=https://search.korhonen.cc/"]
|
environment = ["SEARXNG_BASE_URL=https://search.korhonen.cc/"]
|
||||||
|
@ -31,8 +30,14 @@ driver = "json-file"
|
||||||
max-size = "1m"
|
max-size = "1m"
|
||||||
max-file = "1"
|
max-file = "1"
|
||||||
|
|
||||||
[volumes.redis_temp]
|
[services.redis]
|
||||||
external = true
|
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]
|
[networks.searx.ipam]
|
||||||
driver = "default"
|
driver = "default"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue