feat/postgres-volumes

This commit is contained in:
xucai
2025-02-23 16:17:39 +08:00
parent 566d9354aa
commit c771a7aab4
+5 -1
View File
@@ -23,7 +23,7 @@ services:
db:
image: postgres
image: postgres:16
restart: always
environment:
POSTGRES_DB: litellm
@@ -31,6 +31,8 @@ services:
POSTGRES_PASSWORD: dbpassword9090
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d litellm -U llmproxy"]
interval: 1s
@@ -53,6 +55,8 @@ services:
volumes:
prometheus_data:
driver: local
postgres_data:
name: litellm_postgres_data
# ...rest of your docker-compose config if any