60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
---
|
|
version: '3.7'
|
|
|
|
services:
|
|
redis:
|
|
image: docker.io/library/redis:alpine
|
|
restart: always
|
|
labels: [traefik.enable=false]
|
|
command: redis-server --save "" --appendonly "no"
|
|
networks:
|
|
- searxng
|
|
# tmpfs:
|
|
# - /var/lib/redis
|
|
volumes:
|
|
- /var/lib/searxng/redis:/var/lib/redis
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- SETGID
|
|
- SETUID
|
|
- DAC_OVERRIDE
|
|
|
|
searxng:
|
|
image: docker.io/searxng/searxng:2022.08.19-6f28a69f
|
|
restart: always
|
|
labels: [traefik.enable=false]
|
|
networks:
|
|
- searxng
|
|
ports:
|
|
- 127.0.0.1:8480:8080
|
|
volumes:
|
|
- /etc/searxng/searxng:/etc/searxng:rw
|
|
env_file:
|
|
- /etc/searxng/searxng.env
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- CHOWN
|
|
- SETGID
|
|
- SETUID
|
|
- DAC_OVERRIDE
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "1m"
|
|
max-file: "1"
|
|
healthcheck:
|
|
# DON'T
|
|
# test:i "/usr/bin/wget -q -Y off http://localhost:8080/about -O /dev/null > /dev/null 2>&1"
|
|
# DO:
|
|
test: "/usr/bin/wget -q -Y off http://localhost:8080/about -O /dev/null 2>&-"
|
|
interval: 10s
|
|
retries: 20
|
|
|
|
networks:
|
|
searxng:
|
|
ipam:
|
|
driver: default
|
|
...
|