mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
feat/postgres-volumes
This commit is contained in:
parent
566d9354aa
commit
c771a7aab4
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,7 @@ services:
|
||||||
|
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres:16
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: litellm
|
POSTGRES_DB: litellm
|
||||||
|
@ -31,6 +31,8 @@ services:
|
||||||
POSTGRES_PASSWORD: dbpassword9090
|
POSTGRES_PASSWORD: dbpassword9090
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -d litellm -U llmproxy"]
|
test: ["CMD-SHELL", "pg_isready -d litellm -U llmproxy"]
|
||||||
interval: 1s
|
interval: 1s
|
||||||
|
@ -53,6 +55,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
prometheus_data:
|
prometheus_data:
|
||||||
driver: local
|
driver: local
|
||||||
|
postgres_data:
|
||||||
|
name: litellm_postgres_data
|
||||||
|
|
||||||
|
|
||||||
# ...rest of your docker-compose config if any
|
# ...rest of your docker-compose config if any
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue