fix: Fix Docker compose startup issues (letta-ai#2056) (#2057)

This commit is contained in:
Seth Anderson
2024-11-17 20:28:53 -07:00
committed by GitHub
parent 7f8e911038
commit 73365b9267
2 changed files with 8 additions and 4 deletions

View File

@@ -15,11 +15,17 @@ services:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U letta"]
interval: 5s
timeout: 5s
retries: 5
letta_server:
image: letta/letta:latest
hostname: letta
depends_on:
- letta_db
letta_db:
condition: service_healthy
ports:
- "8083:8083"
- "8283:8283"
@@ -52,4 +58,4 @@ services:
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
- "80:80"