Remove dedicated redis and give searx it's own redis
This commit is contained in:
parent
bb86b21d9e
commit
b8223b88da
|
@ -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"]
|
||||
volumes = [
|
||||
"/docker/searx:/etc/searxng",
|
||||
"redis_temp:/tmp/redis",
|
||||
#"/docker/searx/logo.png:/usr/local/searxng/searx/static/themes/simple/img/searxng.png:ro"
|
||||
]
|
||||
environment = ["SEARXNG_BASE_URL=https://search.korhonen.cc/"]
|
||||
|
@ -31,8 +30,14 @@ driver = "json-file"
|
|||
max-size = "1m"
|
||||
max-file = "1"
|
||||
|
||||
[volumes.redis_temp]
|
||||
external = true
|
||||
[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"
|
||||
|
|
Loading…
Reference in a new issue