From c771a7aab49b982f76f067cd60923cc66ed9ffbd Mon Sep 17 00:00:00 2001 From: xucai Date: Sun, 23 Feb 2025 16:17:39 +0800 Subject: [PATCH] feat/postgres-volumes --- docker-compose.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 78044c03b8..2cb5b6ce6a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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