CoolFace
Apppublic

adrian-li-919/botpress-redis

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
App README

Botpress with Redis on Hugging Face Spaces

This space runs Botpress (a chatbot platform) with Redis as the database, deployed via Docker on Hugging Face Spaces.

Setup

  • —Botpress: Runs on port 3000 internally, serving the web interface and API.
  • —Redis: Runs as the database backend.
  • —Nginx: Acts as a reverse proxy on port 7860 (HF Spaces default), forwarding requests to Botpress.
  • —Health Check: Available at /healthz endpoint.

Configuration

  • —BP_HTTP_PORT=3000: Botpress listens on port 3000.
  • —BP_HTTP_HOST=0.0.0.0: Binds to all interfaces.
  • —REDIS_URL=redis://localhost:6379: Redis connection.

Startup Process

  1. 1.Redis starts in daemon mode.
  2. 2.Botpress starts in the background.
  3. 3.Script waits for Botpress to respond on localhost:3000.
  4. 4.Nginx starts, proxying port 7860 to Botpress.

Health Check

The container includes a health check that verifies the /healthz endpoint every 30 seconds.

Access

Visit the space URL to access the Botpress Studio interface.

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference