SearX: Restart unless-stopped and change domain name

This commit is contained in:
Marko Korhonen 2022-08-14 19:41:22 +03:00
parent a15a21b1a4
commit ae3b1f5db4
No known key found for this signature in database
GPG Key ID: 911B85FBC6003FE5

View File

@ -5,20 +5,21 @@ version = "3.7"
[services.searx] [services.searx]
container_name = "searx" container_name = "searx"
image = "searxng/searxng:latest" image = "searxng/searxng:latest"
restart = "unless-stopped"
networks = ["searx", "proxy"] networks = ["searx", "proxy"]
volumes = ["/docker/searx:/etc/searxng:rw"] volumes = ["/docker/searx:/etc/searxng:rw"]
environment = ["SEARXNG_BASE_URL=https://searx.korhonen.cc/"] environment = ["SEARXNG_BASE_URL=https://search.korhonen.cc/"]
cap_drop = ["ALL"] cap_drop = ["ALL"]
cap_add = ["CHOWN", "SETGID", "SETUID", "DAC_OVERRIDE"] cap_add = ["CHOWN", "SETGID", "SETUID", "DAC_OVERRIDE"]
labels = [ labels = [
"traefik.enable=true", "traefik.enable=true",
"traefik.docker.network=proxy", "traefik.docker.network=proxy",
"traefik.http.routers.searx-redirect.entrypoints=http", "traefik.http.routers.searx-redirect.entrypoints=http",
"traefik.http.routers.searx-redirect.rule=Host(`searx.korhonen.cc`)", "traefik.http.routers.searx-redirect.rule=Host(`search.korhonen.cc`)",
"traefik.http.routers.searx-redirect.middlewares=http2https@file", "traefik.http.routers.searx-redirect.middlewares=http2https@file",
"traefik.http.routers.searx.entrypoints=https", "traefik.http.routers.searx.entrypoints=https",
"traefik.http.routers.searx.middlewares=secHeaders@file,compress@file", "traefik.http.routers.searx.middlewares=secHeaders@file,compress@file",
"traefik.http.routers.searx.rule=Host(`searx.korhonen.cc`)", "traefik.http.routers.searx.rule=Host(`search.korhonen.cc`)",
"traefik.http.routers.searx.service=searx", "traefik.http.routers.searx.service=searx",
"traefik.http.services.searx.loadbalancer.server.port=8080", "traefik.http.services.searx.loadbalancer.server.port=8080",
] ]
@ -33,6 +34,7 @@ max-file = "1"
[services.redis] [services.redis]
container_name = "redis-searx" container_name = "redis-searx"
image = "redis:alpine" image = "redis:alpine"
restart = "unless-stopped"
command = "redis-server --save \"\" --appendonly \"no\"" command = "redis-server --save \"\" --appendonly \"no\""
networks = ["searx"] networks = ["searx"]
tmpfs = ["/var/lib/redis"] tmpfs = ["/var/lib/redis"]