diff options
| author | Ivan Gabaldon <igabaldon@inetol.net> | 2026-03-28 16:45:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-28 16:45:06 +0100 |
| commit | 6b9856d6438a546cbacbcb401334c8bdd33385b6 (patch) | |
| tree | e9755ea28f809a9833a8ca34fc6643b25be65672 /container/entrypoint.sh | |
| parent | e58516daf5bd67e52b777c6bc97f4464bc6825c3 (diff) | |
[mod] container: rework compose (#5906)
* [mod] container: rework compose
See https://docs.searxng.org/admin/installation-docker.html#migrate-from-searxng-docker
* [mod] container: apply suggestions
https://github.com/searxng/searxng/pull/5906#discussion_r3004917087
https://github.com/searxng/searxng/pull/5906#discussion_r3004917090
https://github.com/searxng/searxng/pull/5906#discussion_r3004917084
Diffstat (limited to 'container/entrypoint.sh')
| -rwxr-xr-x | container/entrypoint.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/container/entrypoint.sh b/container/entrypoint.sh index 10844f115..d33748bed 100755 --- a/container/entrypoint.sh +++ b/container/entrypoint.sh @@ -117,16 +117,22 @@ EOF } cat <<EOF -SearXNG $SEARXNG_VERSION +SearXNG $__SEARXNG_VERSION EOF # Check for volume mounts -volume_handler "$CONFIG_PATH" -volume_handler "$DATA_PATH" +volume_handler "$__SEARXNG_CONFIG_PATH" +volume_handler "$__SEARXNG_DATA_PATH" # Check for files -config_handler "$SEARXNG_SETTINGS_PATH" "/usr/local/searxng/searx/settings.yml" +config_handler "$__SEARXNG_SETTINGS_PATH" "/usr/local/searxng/searx/settings.yml" -update-ca-certificates +# root only features +if [ "$(id -u)" -eq 0 ]; then + update-ca-certificates +fi + +# ENVs aliases +export GRANIAN_PORT="${SEARXNG_PORT:-$GRANIAN_PORT}" exec /usr/local/searxng/.venv/bin/granian searx.webapp:app |
