[enh] container: nitpicks (#6862)

Reduce Valkey writes to database
Should error with 1, not 127
This commit is contained in:
Ivan Gabaldon authored and GitHub committed 2026-10-17 20:30:22 +02:00
1 parent 3afd949268
commit 1c10abe2d3
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
# Read the documentation before using the `docker-compose.yml` file: # Read the documentation before using the `docker-compose.yml` file:
# https://docs.searxng.org/admin/installation-docker.html # https://docs.searxng.org/admin/installation-docker.html
# #
# Additional ENVs: # Additional variables:
# https://docs.searxng.org/admin/settings/settings_general.html#settings-general # https://docs.searxng.org/admin/settings/settings_general.html#settings-general
# https://docs.searxng.org/admin/settings/settings_server.html#settings-server # https://docs.searxng.org/admin/settings/settings_server.html#settings-server
+1 -1
View File
@@ -18,7 +18,7 @@ services:
valkey: valkey:
container_name: searxng-valkey container_name: searxng-valkey
image: docker.io/valkey/valkey:9-alpine image: docker.io/valkey/valkey:9-alpine
command: valkey-server --save 30 1 --loglevel warning command: valkey-server --save 300 1 --save 60 1000 --loglevel warning
restart: always restart: always
volumes: volumes:
- valkey-data:/data/ - valkey-data:/data/
+2 -2
View File
@@ -13,7 +13,7 @@ check_file() {
!!! "$target" is not a valid file, exiting... !!! "$target" is not a valid file, exiting...
!!! !!!
EOF EOF
exit 127 exit 1
fi fi
} }
@@ -28,7 +28,7 @@ check_directory() {
!!! "$target" is not a valid directory, exiting... !!! "$target" is not a valid directory, exiting...
!!! !!!
EOF EOF
exit 127 exit 1
fi fi
} }