Files
cloudy/keytong/searxng-deployment.yaml
T
furyhawk 4549a213e2 Add Traefik and various service configurations for Docker Swarm
- Created `local_core.yml` for Traefik service configuration with multiple entry points and middleware settings.
- Added `services-all.yml` to define multiple services including API server, PostgreSQL, MinIO, Neo4j, and others with Traefik routing.
- Implemented Kubernetes deployment files for API server, Dozzle, MinIO, OSRM backend, PostgreSQL, SearxNG, and Whoami services.
- Configured persistent volume claims for MinIO, PostgreSQL, and SearxNG.
- Set up Traefik routing rules for all services to enable HTTPS and middleware for security.
2026-03-25 10:15:04 +08:00

56 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f searxng.yml
kompose.version: 1.34.0 (HEAD)
labels:
io.kompose.service: searxng
traefik.constraint-label: traefik-public
traefik.swarm.network: traefik-public
traefik.enable: "true"
traefik.http.routers.searxng-rtr.entrypoints: https
traefik.http.routers.searxng-rtr.middlewares: xbot
traefik.http.routers.searxng-rtr.rule: Host(`search.`)
traefik.http.routers.searxng-rtr.service: searxng-svc
traefik.http.routers.searxng-rtr.tls.certresolver: le
traefik.http.services.searxng-svc.loadbalancer.server.port: "8080"
name: searxng
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: searxng
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f searxng.yml
kompose.version: 1.34.0 (HEAD)
labels:
io.kompose.service: searxng
spec:
containers:
- env:
- name: LIMITER
value: "true"
- name: SEARXNG_BASE_URL
value: https://search./
- name: SEARXNG_LIMITER
value: "true"
- name: SEARXNG_REDIS_URL
value: redis://redis_valkey:6379/0
- name: SEARXNG_SECRET
value: ultrasecretkey
image: docker.io/searxng/searxng:latest
name: searxng
volumeMounts:
- mountPath: /etc/searxng
name: searxng-claim0
restartPolicy: Always
volumes:
- name: searxng-claim0
persistentVolumeClaim:
claimName: searxng-claim0