adeyemi001 commited on
Commit
fe3421f
·
verified ·
1 Parent(s): f6d434f

Upload docker-compose.yml with huggingface_hub

Browse files
Files changed (1) hide show
  1. docker-compose.yml +22 -0
docker-compose.yml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ car-price-predictor:
5
+ build: .
6
+ container_name: car_price_app
7
+ ports:
8
+ - "7860:7860"
9
+ volumes:
10
+ # Mount only if you want to update models without rebuilding
11
+ - ./model:/app/model
12
+ - ./embeddings:/app/embeddings
13
+ environment:
14
+ - FLASK_ENV=production
15
+ - PYTHONUNBUFFERED=1
16
+ restart: unless-stopped
17
+ healthcheck:
18
+ test: ["CMD", "curl", "-f", "http://localhost:7860/health"]
19
+ interval: 30s
20
+ timeout: 10s
21
+ retries: 3
22
+ start_period: 40s