Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

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

Seth Anderson73365b92674d
diff --git a/compose.yaml b/compose.yaml
index db3cb0072..460afe3bc 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -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"
\ No newline at end of file
diff --git a/nginx.conf b/nginx.conf
index 3949b10b1..7585ad486 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -6,8 +6,6 @@ http {
listen [::]:80;
listen 8283;
listen [::]:8283;
- listen 8283;
- listen [::]:8283;
server_name letta.localhost;
set $api_target "http://letta-server:8283";
location / {