4
4
# logo: svgs/litellm.svg
5
5
# port: 4000
6
6
7
+ version : " 3"
8
+
7
9
volumes :
8
- pg-data : null
9
- redis-data : null
10
+ pg_data : null
11
+ redis_data : null
10
12
11
13
services :
12
14
litellm :
13
- image : " ghcr.io/berriai/litellm-database:main-latest "
15
+ image : " ghcr.io/berriai/litellm-database:main-stable "
14
16
restart : always
15
17
depends_on :
16
18
postgres :
17
19
condition : service_healthy
18
20
redis :
19
21
condition : service_healthy
20
22
environment :
23
+ - SERVICE_FQDN_LITELLM_4000
21
24
- LITELLM_LOG=ERROR
22
25
- LITELLM_MODE=PRODUCTION
23
- - " LITELLM_MASTER_KEY=${SERVICE_PASSWORD_32_LITELLM_MASTER_KEY }"
26
+ - " LITELLM_MASTER_KEY=${SERVICE_PASSWORD_MASTERKEY }"
24
27
- " UI_USERNAME=${SERVICE_USER_UI}"
25
28
- " UI_PASSWORD=${SERVICE_PASSWORD_UI}"
26
29
- " DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-litellm}"
@@ -36,16 +39,14 @@ services:
36
39
- " VOYAGE_API_KEY=${VOYAGE_API_KEY}"
37
40
- " VOYAGE_API_BASE=${VOYAGE_API_BASE}"
38
41
volumes :
39
- - " ./litellm-config.yaml:/app/config.yaml"
40
42
- type : bind
41
- source : ./docker/app/ config.yaml
43
+ source : ./litellm- config.yaml
42
44
target : /app/config.yaml
43
45
content : |
44
46
general_settings:
45
47
proxy_batch_write_at: 60
46
48
47
49
router_settings:
48
- routing_strategy: usage-based-routing-v2
49
50
redis_host: os.environ/REDIS_HOST
50
51
redis_port: os.environ/REDIS_PORT
51
52
redis_password: os.environ/REDIS_PASSWORD
@@ -57,6 +58,7 @@ services:
57
58
log_raw_request_response: true
58
59
# turn_off_message_logging: false
59
60
# redact_user_api_key_info: false
61
+ service_callback: ["prometheus_system"]
60
62
drop_params: true
61
63
# max_budget: 100
62
64
# budget_duration: 30d
@@ -71,19 +73,14 @@ services:
71
73
password: os.environ/REDIS_PASSWORD
72
74
namespace: "litellm_cache"
73
75
ttl: 600
74
- # success_callback:
75
- # - "langfuse"
76
- # - "prometheus"
77
- # failure_callback:
78
- # - "langfuse"
79
- # - "prometheus"
76
+ success_callback:
77
+ # - "langfuse"
78
+ - "prometheus"
79
+ failure_callback:
80
+ # - "langfuse"
81
+ - "prometheus"
80
82
model_list:
81
83
# OpenAI
82
- - model_name: gpt-3.5-turbo
83
- litellm_params:
84
- model: openai/gpt-3.5-turbo
85
- api_key: os.environ/OPENAI_API_KEY
86
- api_base: os.environ/OPENAI_API_BASE
87
84
- model_name: gpt-4
88
85
litellm_params:
89
86
model: openai/gpt-4
@@ -118,8 +115,8 @@ services:
118
115
model: voyage/voyage-law-2
119
116
api_key: "os.environ/VOYAGE_API_KEY"
120
117
api_base: "os.environ/VOYAGE_API_BASE"
121
- rpm: 300
122
- tpm: 1000000
118
+ # rpm: 300
119
+ # tpm: 1000000
123
120
- model_name: voyage-multilingual-2
124
121
model_info:
125
122
mode: embedding
@@ -132,8 +129,8 @@ services:
132
129
api_base: "os.environ/VOYAGE_API_BASE"
133
130
input_cost_per_token: 0.00000012
134
131
output_cost_per_token: 0
135
- rpm: 300
136
- tpm: 1000000
132
+ # rpm: 300
133
+ # tpm: 1000000
137
134
healthcheck :
138
135
test :
139
136
- CMD
@@ -157,7 +154,7 @@ services:
157
154
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
158
155
- POSTGRES_USER=$SERVICE_USER_POSTGRES
159
156
volumes :
160
- - " pg-data :/var/lib/postgresql/data"
157
+ - " pg_data :/var/lib/postgresql/data"
161
158
healthcheck :
162
159
test :
163
160
- CMD-SHELL
@@ -169,7 +166,7 @@ services:
169
166
image : redis:7-alpine
170
167
command : redis-server --appendonly yes
171
168
volumes :
172
- - redis-data :/data
169
+ - redis_data :/data
173
170
healthcheck :
174
171
test : ["CMD", "redis-cli", "ping"]
175
172
interval : 5s
0 commit comments