mirror of
https://github.com/searxng/searxng.git
synced 2026-10-25 05:44:14 +00:00
[enh] container: nitpicks (#6862)
Reduce Valkey writes to database Should error with 1, not 127
This commit is contained in:
1 parent
3afd949268
commit
1c10abe2d3
3 files changed
+4
-4
No files matched your search
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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/
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user