SearXNG: Added persistant redis data volume
This commit is contained in:
parent
9de094f09f
commit
e232eb47d9
1 changed files with 7 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
container_name: searxng_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
|
||||||
networks:
|
networks:
|
||||||
- searxng
|
- searxng
|
||||||
tmpfs:
|
volumes:
|
||||||
- /var/lib/redis
|
- redis-data:/data
|
||||||
cap_drop:
|
cap_drop:
|
||||||
- ALL
|
- ALL
|
||||||
cap_add:
|
cap_add:
|
||||||
|
@ -42,3 +42,6 @@ networks:
|
||||||
searxng:
|
searxng:
|
||||||
ipam:
|
ipam:
|
||||||
driver: default
|
driver: default
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
redis-data:
|
||||||
|
|
Loading…
Reference in a new issue