-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllmproxy-data.yaml
More file actions
55 lines (50 loc) · 1.39 KB
/
llmproxy-data.yaml
File metadata and controls
55 lines (50 loc) · 1.39 KB
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
47
48
49
50
51
52
53
54
55
# Environment variables: follow .env.example file
x-common-healthcheck: &common-healthcheck
interval: 30s # Perform health check every 30 seconds
timeout: 10s # Health check command times out after 10 seconds
retries: 3 # Retry up to 3 times if health check fails
x-common-deploy: &common-deploy
replicas: 1
update_config:
parallelism: 1
delay: 10s
order: stop-first
failure_action: rollback
rollback_config:
parallelism: 1
delay: 10s
order: stop-first
services:
db:
image: postgres:18.1-alpine3.23
environment:
POSTGRES_USER: ${DB_USER:-app}
POSTGRES_PASSWORD: ${DB_PASSWORD:-app_db_PW@2018}
POSTGRES_DB: ${DB_NAME:-app}
volumes:
- db-data:/var/lib/postgresql
networks:
- internal
- monitoring
healthcheck:
<<: *common-healthcheck
test:
[
"CMD-SHELL",
"pg_isready -U ${DB_USER:-app} -d ${DB_NAME:-app} -p 5432",
]
deploy:
<<: *common-deploy
labels:
# Auto-discovery labels for Netdata monitoring (service labels)
- netdata.postgres.name=litellm_db
- netdata.postgres.dsn=postgresql://${DB_USER:-app}:${DB_PASSWORD:-app_db_PW@2018}@db:5432/${DB_NAME:-app}
volumes:
db-data:
networks:
internal:
name: ${INTERNAL_NETWORK:-llmproxy}
internal: true
monitoring:
name: ${MONITORING_NETWORK:-monitoring}
external: true