Spaces:
Building
Building
File size: 896 Bytes
48cecb1 0c10996 48cecb1 72f5836 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
---
title: Weaviate Test2
emoji: 🦀
colorFrom: green
colorTo: blue
sdk: docker
pinned: false
app_port: 7860
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# Weaviate with Nginx Proxy
This Dockerfile sets up a container with both Weaviate and Nginx. Weaviate runs internally on ports 8080 (HTTP) and 50051 (gRPC), while Nginx forwards external requests from port 7860 to these internal ports.
## Build the Image
```bash
docker build -t weaviate-nginx .
```
## Run the Container
```bash
docker run -d -p 7860:7860 -v weaviate_data:/var/lib/weaviate --name weaviate-container weaviate-nginx
```
## Accessing Weaviate
- Access the Weaviate HTTP API at: http://localhost:7860
- The gRPC port is also accessible at port 7860
## Persistent Data
The container uses a Docker volume named `weaviate_data` to persist the Weaviate database.
|