Upload docker-compose.yml with huggingface_hub
Browse files- docker-compose.yml +20 -0
docker-compose.yml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: '3.8'
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
fintech-classifier:
|
| 5 |
+
build: .
|
| 6 |
+
container_name: fintech-review-classifier
|
| 7 |
+
ports:
|
| 8 |
+
- "5000:5000"
|
| 9 |
+
volumes:
|
| 10 |
+
- ./model:/app/model:ro # Mount model as read-only
|
| 11 |
+
environment:
|
| 12 |
+
- FLASK_ENV=production
|
| 13 |
+
- PYTHONUNBUFFERED=1
|
| 14 |
+
restart: unless-stopped
|
| 15 |
+
healthcheck:
|
| 16 |
+
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
|
| 17 |
+
interval: 30s
|
| 18 |
+
timeout: 10s
|
| 19 |
+
retries: 3
|
| 20 |
+
start_period: 40s
|