26 lines
614 B
YAML
26 lines
614 B
YAML
services:
|
|
redis:
|
|
image: "redis:alpine"
|
|
command: redis-server --save 60 1 --loglevel warning
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
searxng:
|
|
image: searxng/searxng:latest
|
|
container_name: searxng
|
|
restart: always
|
|
ports:
|
|
- "${HOST_PORT}:8080"
|
|
volumes:
|
|
- ${CONF_DIR}:/etc/searxng:rw
|
|
environment:
|
|
- SEARXNG_HOSTNAME=${HOSTNAME}
|
|
- SEARXNG_SECRET_KEY=${SECRET_KEY}
|
|
- REDIS_URL=redis://redis:6379/0
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy |