Skip to content

Commit 94ee416

Browse files
authored
Create docker-compose.yml
1 parent 62ca82c commit 94ee416

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: '3.8'
2+
3+
services:
4+
gate:
5+
build: .
6+
container_name: llm-stability-gate
7+
ports:
8+
- "8000:8000"
9+
environment:
10+
- OPENAI_API_KEY=${OPENAI_API_KEY}
11+
- HOST=0.0.0.0
12+
- PORT=8000
13+
- LOG_LEVEL=INFO
14+
- OPENAI_MODEL=gpt-4o-mini
15+
- DEFAULT_NUM_SAMPLES=5
16+
- DEFAULT_MIN_CONFIDENCE=0.6
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+
start_period: 40s
24+
networks:
25+
- gate-network
26+
27+
networks:
28+
gate-network:
29+
driver: bridge

0 commit comments

Comments
 (0)