2022-08-14 00:36:32 +03:00
|
|
|
[services.searx]
|
|
|
|
container_name = "searx"
|
|
|
|
image = "searxng/searxng:latest"
|
2022-08-14 19:41:22 +03:00
|
|
|
restart = "unless-stopped"
|
2022-08-14 00:36:32 +03:00
|
|
|
networks = ["searx", "proxy"]
|
2022-08-15 13:52:10 +03:00
|
|
|
volumes = [
|
|
|
|
"/docker/searx:/etc/searxng",
|
|
|
|
"redis_temp:/tmp/redis",
|
|
|
|
#"/docker/searx/logo.png:/usr/local/searxng/searx/static/themes/simple/img/searxng.png:ro"
|
|
|
|
]
|
2022-08-14 19:41:22 +03:00
|
|
|
environment = ["SEARXNG_BASE_URL=https://search.korhonen.cc/"]
|
2022-08-14 00:36:32 +03:00
|
|
|
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",
|
2022-08-14 19:41:22 +03:00
|
|
|
"traefik.http.routers.searx-redirect.rule=Host(`search.korhonen.cc`)",
|
2022-08-14 00:36:32 +03:00
|
|
|
"traefik.http.routers.searx-redirect.middlewares=http2https@file",
|
|
|
|
"traefik.http.routers.searx.entrypoints=https",
|
|
|
|
"traefik.http.routers.searx.middlewares=secHeaders@file,compress@file",
|
2022-08-14 19:41:22 +03:00
|
|
|
"traefik.http.routers.searx.rule=Host(`search.korhonen.cc`)",
|
2022-08-14 00:36:32 +03:00
|
|
|
"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"
|
|
|
|
|
2022-08-15 13:52:10 +03:00
|
|
|
[volumes.redis_temp]
|
|
|
|
external = true
|
2022-08-14 00:36:32 +03:00
|
|
|
|
|
|
|
[networks.searx.ipam]
|
|
|
|
driver = "default"
|
|
|
|
|
|
|
|
[networks.proxy]
|
|
|
|
external = true
|