Spaces:
Running
Running
Commit
·
ad97a86
1
Parent(s):
74cf6bd
Change the port to 7860 (as required by HF Spaces)
Browse files(cherry picked from commit 7ed1caaec1800d2f2db664d649f91ec7a0148265)
- Dockerfile +1 -1
- docker-compose.yml +2 -2
- gunicorn.conf.py +2 -2
Dockerfile
CHANGED
|
@@ -23,7 +23,7 @@ RUN poetry install --no-dev --no-interaction --no-ansi
|
|
| 23 |
COPY app ./app
|
| 24 |
|
| 25 |
# Expose port
|
| 26 |
-
EXPOSE
|
| 27 |
|
| 28 |
# Set environment variables
|
| 29 |
ENV PYTHONPATH=/app
|
|
|
|
| 23 |
COPY app ./app
|
| 24 |
|
| 25 |
# Expose port
|
| 26 |
+
EXPOSE 7860
|
| 27 |
|
| 28 |
# Set environment variables
|
| 29 |
ENV PYTHONPATH=/app
|
docker-compose.yml
CHANGED
|
@@ -4,7 +4,7 @@ services:
|
|
| 4 |
app:
|
| 5 |
build: .
|
| 6 |
ports:
|
| 7 |
-
- "
|
| 8 |
environment:
|
| 9 |
- QDRANT_URL=http://qdrant:6333
|
| 10 |
- WORKERS=4 # Set number of workers
|
|
@@ -13,7 +13,7 @@ services:
|
|
| 13 |
- qdrant
|
| 14 |
restart: unless-stopped
|
| 15 |
healthcheck:
|
| 16 |
-
test: ["CMD", "curl", "-f", "http://localhost:
|
| 17 |
interval: 30s
|
| 18 |
timeout: 10s
|
| 19 |
retries: 3
|
|
|
|
| 4 |
app:
|
| 5 |
build: .
|
| 6 |
ports:
|
| 7 |
+
- "7860:7860"
|
| 8 |
environment:
|
| 9 |
- QDRANT_URL=http://qdrant:6333
|
| 10 |
- WORKERS=4 # Set number of workers
|
|
|
|
| 13 |
- qdrant
|
| 14 |
restart: unless-stopped
|
| 15 |
healthcheck:
|
| 16 |
+
test: ["CMD", "curl", "-f", "http://localhost:7860/"]
|
| 17 |
interval: 30s
|
| 18 |
timeout: 10s
|
| 19 |
retries: 3
|
gunicorn.conf.py
CHANGED
|
@@ -12,8 +12,8 @@ else:
|
|
| 12 |
# Use Uvicorn worker class for ASGI support
|
| 13 |
worker_class = "uvicorn.workers.UvicornWorker"
|
| 14 |
|
| 15 |
-
# Bind to 0.0.0.0:
|
| 16 |
-
bind = "0.0.0.0:
|
| 17 |
|
| 18 |
# Logging
|
| 19 |
accesslog = "-" # Log to stdout
|
|
|
|
| 12 |
# Use Uvicorn worker class for ASGI support
|
| 13 |
worker_class = "uvicorn.workers.UvicornWorker"
|
| 14 |
|
| 15 |
+
# Bind to 0.0.0.0:7860
|
| 16 |
+
bind = "0.0.0.0:7860"
|
| 17 |
|
| 18 |
# Logging
|
| 19 |
accesslog = "-" # Log to stdout
|