adrian-li-919/botpress-redis
0
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
/healthzendpoint.
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
- Redis starts in daemon mode.
- Botpress starts in the background.
- Script waits for Botpress to respond on localhost:3000.
- 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
