diff --git a/searxng/docker-compose.yml b/searxng/docker-compose.yml new file mode 100644 index 0000000..73372e2 --- /dev/null +++ b/searxng/docker-compose.yml @@ -0,0 +1,26 @@ +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 \ No newline at end of file