letta-ai / letta

Letta (formerly MemGPT) is a framework for creating LLM services with memory.
https://letta.com
Apache License 2.0
12.88k stars 1.41k forks source link

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

Closed sethanderson1 closed 4 days ago

sethanderson1 commented 4 days ago

Please describe the purpose of this pull request. This PR fixes two Docker compose startup issues:

  1. Removes duplicate nginx port listener configuration that causes nginx container to fail
  2. Adds proper database healthcheck to ensure Letta server only starts after database is ready to accept connections

How to test

  1. Pull the changes and run:
    docker compose up

Expected outcomes:

Have you tested this PR? Yes, tested the latest commit. The system starts up cleanly as shown in the test output above, with all services starting and remaining running, with no connection errors.

Related issues or PRs Fixes #2056

Is your PR over 500 lines of code? No, this PR makes minimal targeted changes to nginx.conf and compose.yaml.

Additional context These changes ensure reliable container startup sequence by: