| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- services:
- redis:
- image: valkey/valkey:8-alpine
- container_name: searxng-redis
- restart: unless-stopped
- command: valkey-server --save 30 1 --loglevel warning
- volumes:
- - /storage/searxng/redis:/data
- networks:
- - searxng
- cap_drop:
- - ALL
- cap_add:
- - SETGID
- - SETUID
- - DAC_OVERRIDE
- searxng:
- image: searxng/searxng:latest
- container_name: searxng
- restart: unless-stopped
- ports:
- - "${SEARXNG_PORT:-8080}:8080"
- volumes:
- - /storage/searxng/config:/etc/searxng
- environment:
- - SEARXNG_BASE_URL=http://${SEARXNG_HOSTNAME:-localhost}:${SEARXNG_PORT:-8080}/
- - UWSGI_WORKERS=${UWSGI_WORKERS:-4}
- - UWSGI_THREADS=${UWSGI_THREADS:-4}
- networks:
- - searxng
- cap_drop:
- - ALL
- cap_add:
- - CHOWN
- - SETGID
- - SETUID
- depends_on:
- - redis
- logging:
- driver: json-file
- options:
- max-size: "10m"
- max-file: "3"
- networks:
- searxng:
- driver: bridge
|