Spaces:
Sleeping
Sleeping
Commit ·
aa47fca
1
Parent(s): 59b46a2
update port
Browse files- Dockerfile +1 -1
- docker-compose.yml +2 -2
Dockerfile
CHANGED
|
@@ -18,4 +18,4 @@ COPY . .
|
|
| 18 |
|
| 19 |
EXPOSE 4002
|
| 20 |
|
| 21 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 18 |
|
| 19 |
EXPOSE 4002
|
| 20 |
|
| 21 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
docker-compose.yml
CHANGED
|
@@ -17,11 +17,11 @@ services:
|
|
| 17 |
REQUEST_TIMEOUT_SECONDS: ${REQUEST_TIMEOUT_SECONDS:-30}
|
| 18 |
DEFAULT_LABELS_CSV: ${DEFAULT_LABELS_CSV:-news,sport,finance,politics}
|
| 19 |
ports:
|
| 20 |
-
- "
|
| 21 |
volumes:
|
| 22 |
- ./static:/app/static
|
| 23 |
healthcheck:
|
| 24 |
-
test: ["CMD", "curl", "-f", "http://localhost:
|
| 25 |
interval: 10s
|
| 26 |
timeout: 4s
|
| 27 |
retries: 6
|
|
|
|
| 17 |
REQUEST_TIMEOUT_SECONDS: ${REQUEST_TIMEOUT_SECONDS:-30}
|
| 18 |
DEFAULT_LABELS_CSV: ${DEFAULT_LABELS_CSV:-news,sport,finance,politics}
|
| 19 |
ports:
|
| 20 |
+
- "7860:7860"
|
| 21 |
volumes:
|
| 22 |
- ./static:/app/static
|
| 23 |
healthcheck:
|
| 24 |
+
test: ["CMD", "curl", "-f", "http://localhost:7860/health/liveness"]
|
| 25 |
interval: 10s
|
| 26 |
timeout: 4s
|
| 27 |
retries: 6
|