allow persistent rdb (#198)

Signed-off-by: Inetol <igabaldon@inetol.net>
This commit is contained in:
Ivan Gabaldon 2023-11-28 18:35:40 +01:00 committed by GitHub
parent 47fad9cba6
commit 6813aff4d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
version: '3.7' version: "3.7"
services: services:
caddy: caddy:
container_name: caddy container_name: caddy
image: caddy:2-alpine image: caddy:2-alpine
@ -20,12 +19,12 @@ services:
redis: redis:
container_name: redis container_name: redis
image: "redis:alpine" image: docker.io/library/redis:alpine
command: redis-server --save "" --appendonly "no" command: redis-server --save 30 1 --loglevel warning
networks: networks:
- searxng - searxng
tmpfs: volumes:
- /var/lib/redis - redis-data:/data
cap_drop: cap_drop:
- ALL - ALL
cap_add: cap_add:
@ -39,7 +38,7 @@ services:
networks: networks:
- searxng - searxng
ports: ports:
- "127.0.0.1:8080:8080" - "127.0.0.1:8080:8080"
volumes: volumes:
- ./searxng:/etc/searxng:rw - ./searxng:/etc/searxng:rw
environment: environment:
@ -55,6 +54,7 @@ services:
options: options:
max-size: "1m" max-size: "1m"
max-file: "1" max-file: "1"
networks: networks:
searxng: searxng:
ipam: ipam:
@ -63,3 +63,4 @@ networks:
volumes: volumes:
caddy-data: caddy-data:
caddy-config: caddy-config:
redis-data: