manifests/searxng/compose/compose.yml
2025-04-12 13:11:34 +08:00

63 lines
1.6 KiB
YAML

version: "3.7"
services:
#redis:
# container_name: redis
# image: docker.io/valkey/valkey:8-alpine
# command: valkey-server --save 30 1 --loglevel warning
# restart: unless-stopped
# labels:
# kompose.controller.type: statefulset
# kompose.volume.type: persistentVolumeClaim
# kompose.volume.storage-class-name: longhorn-us
# kompose.volume.size: 2Gi
# volumes:
# - valkey-data2:/data
# cap_drop:
# - ALL
# cap_add:
# - SETGID
# - SETUID
# - DAC_OVERRIDE
# logging:
# driver: "json-file"
# options:
# max-size: "1m"
# max-file: "1"
searxng:
container_name: searxng
image: docker.io/searxng/searxng:latest
restart: unless-stopped
ports:
- "127.0.0.1:8080:8080"
volumes:
- ./searxng:/etc/searxng:rw
labels:
kompose.controller.type: statefulset
kompose.volume.type: persistentVolumeClaim
kompose.volume.storage-class-name: longhorn-us
kompose.volume.size: 2Gi
kompose.service.expose: searxng.skybyte.me
kompose.service.expose.ingress-class-name: nginx
kompose.service.expose.tls-secret: searxng-skybyte-me-tls
environment:
- SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-searxng.skybyte.me}/
- UWSGI_WORKERS=${SEARXNG_UWSGI_WORKERS:-4}
- UWSGI_THREADS=${SEARXNG_UWSGI_THREADS:-4}
- SEARXNG_REDIS_URL=redis.searxng.svc.cluster.local:6379
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
#volumes:
# valkey-data2: