saemstunes commited on
Commit
b68b21b
·
verified ·
1 Parent(s): 895a903

Create docker-compose.yml

Browse files
Files changed (1) hide show
  1. docker-compose.yml +52 -0
docker-compose.yml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ ai-api:
5
+ build:
6
+ context: .
7
+ dockerfile: Dockerfile
8
+ ports:
9
+ - "8000:8000"
10
+ environment:
11
+ - SUPABASE_URL=${SUPABASE_URL}
12
+ - SUPABASE_ANON_KEY=${SUPABASE_ANON_KEY}
13
+ - MODEL_NAME=Phi-3.5-mini-instruct
14
+ - PORT=8000
15
+ volumes:
16
+ - ./models:/app/models
17
+ restart: unless-stopped
18
+ healthcheck:
19
+ test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
20
+ interval: 30s
21
+ timeout: 10s
22
+ retries: 3
23
+
24
+ prometheus:
25
+ image: prom/prometheus:latest
26
+ ports:
27
+ - "9090:9090"
28
+ volumes:
29
+ - ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml
30
+ - prometheus_data:/prometheus
31
+ command:
32
+ - '--config.file=/etc/prometheus/prometheus.yml'
33
+ - '--storage.tsdb.path=/prometheus'
34
+ - '--web.console.libraries=/etc/prometheus/console_libraries'
35
+ - '--web.console.templates=/etc/prometheus/consoles'
36
+ - '--storage.tsdb.retention.time=200h'
37
+ - '--web.enable-lifecycle'
38
+
39
+ grafana:
40
+ image: grafana/grafana:latest
41
+ ports:
42
+ - "3000:3000"
43
+ environment:
44
+ - GF_SECURITY_ADMIN_PASSWORD=admin
45
+ volumes:
46
+ - grafana_data:/var/lib/grafana
47
+ depends_on:
48
+ - prometheus
49
+
50
+ volumes:
51
+ prometheus_data:
52
+ grafana_data: