0
0

SearXNG: switched to Valkey as database

This commit is contained in:
Opnxng 2024-05-20 19:00:26 +08:00
parent 2476dd1ef0
commit ab2e1bf87b
3 changed files with 13 additions and 8 deletions

View File

@ -21,10 +21,11 @@
group: 1000
mode: 0755
- name: Create redis-data directory
- name: Create valkey-data directory
ansible.builtin.file:
path: "{{ docker_dir }}/paulgo/redis-data"
path: "{{ docker_dir }}/paulgo/valkey-data"
state: directory
owner: 999
group: 1000
mode: 0755
become: true

View File

@ -4,7 +4,7 @@ services:
searxng:
image: git.opnxng.com/opnxng/searxng
#image: searxng/searxng:latest
# image: searxng/searxng:latest
restart: always
container_name: searxng
security_opt:
@ -44,8 +44,9 @@ services:
searxng-redis:
container_name: searxng-redis
image: "docker.io/library/redis:alpine"
command: redis-server --save 30 1 --loglevel warning
image: docker.io/valkey/valkey:alpine
command: valkey-server --save 30 1 --loglevel warning
restart: always
security_opt:
- no-new-privileges
environment:
@ -53,12 +54,17 @@ services:
#- PGID=1000
- TZ=Asia/Singapore
volumes:
- {{ docker_dir }}/paulgo/redis-data:/data
- {{ docker_dir }}/paulgo/valkey-data:/data
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
restart: always
network_mode: host

View File

@ -1,11 +1,9 @@
config:
oracle4:
- caddy
- paulgo
compose:
oracle4:
- caddy
- paulgo
# ----------------------------------------------------------------------------------------------------