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 group: 1000
mode: 0755 mode: 0755
- name: Create redis-data directory - name: Create valkey-data directory
ansible.builtin.file: ansible.builtin.file:
path: "{{ docker_dir }}/paulgo/redis-data" path: "{{ docker_dir }}/paulgo/valkey-data"
state: directory state: directory
owner: 999 owner: 999
group: 1000 group: 1000
mode: 0755 mode: 0755
become: true

View File

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

View File

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