-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcompose.yaml
More file actions
46 lines (46 loc) · 960 Bytes
/
compose.yaml
File metadata and controls
46 lines (46 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: agentic-strands
services:
app:
build:
context: ./app
ports:
- target: 5001
published: 5001
mode: ingress
environment:
LLM_URL: http://llm/api/v1/
LLM_MODEL: default
OPENAI_API_KEY: SAMPLE_TOKEN
healthcheck:
test:
- CMD
- python3
- -c
- import urllib.request; exit(0) if urllib.request.urlopen('http://localhost:5001/health').status
== 200 else exit(1)
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
depends_on:
- llm
deploy:
resources:
reservations:
cpus: '0.5'
memory: 512M
llm:
environment:
OPENAI_API_KEY: SAMPLE_TOKEN
image: defangio/openai-access-gateway
ports:
- target: 80
published: 80
protocol: tcp
mode: host
x-defang-llm: true
deploy:
resources:
reservations:
cpus: 0.25
memory: 512MB