0
0

SearXNG: updated Redis config

This commit is contained in:
Opnxng 2023-11-29 06:49:58 +08:00
parent 3c014d8987
commit f6bcf08063
3 changed files with 26 additions and 9 deletions

View File

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

View File

@ -35,24 +35,24 @@ services:
- UWSGI_WORKERS=1 - UWSGI_WORKERS=1
- UWSGI_THREADS=16 - UWSGI_THREADS=16
depends_on: depends_on:
- redis - searxng-redis
volumes: volumes:
- {{ docker_dir }}/paulgo/settings.yml:/usr/local/searxng/searx/settings.yml - {{ docker_dir }}/paulgo/settings.yml:/usr/local/searxng/searx/settings.yml
- {{ docker_dir }}/paulgo/donate.md:/usr/local/searxng/searx/infopage/en/donate.md - {{ docker_dir }}/paulgo/donate.md:/usr/local/searxng/searx/infopage/en/donate.md
network_mode: host network_mode: host
redis: searxng-redis:
container_name: redis container_name: searxng-redis
image: "redis:alpine" image: "docker.io/library/redis:alpine"
command: redis-server --save "" --appendonly "no" command: redis-server --save 30 1 --loglevel warning
security_opt: security_opt:
- no-new-privileges - no-new-privileges
environment: environment:
- PUID=1000 #- PUID=1000
- PGID=1000 #- PGID=1000
- TZ=Asia/Singapore - TZ=Asia/Singapore
tmpfs: volumes:
- /var/lib/redis - {{ docker_dir }}/paulgo/redis-data:/data
cap_drop: cap_drop:
- ALL - ALL
cap_add: cap_add:

View File

@ -1,5 +1,14 @@
config:
oracle4:
- paulgo
compose:
oracle4:
- paulgo
# ---------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------
deployed-compose: deployed-compose:
vultr: vultr:
- cloudtube - cloudtube