Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start Docker environment: Port 80 in use #2104

Open
stracker-phil opened this issue Nov 25, 2024 · 0 comments
Open

Cannot start Docker environment: Port 80 in use #2104

stracker-phil opened this issue Nov 25, 2024 · 0 comments

Comments

@stracker-phil
Copy link

Describe the bug

After a recent git pull of this repo, I cannot start the service using docker compose up anymore:

❯ docker compose up        
[+] Running 1/0
 ✔ Container memgpt-letta_db-1  Running                                                                              
Attaching to letta_db-1, letta_nginx-1, letta_server-1
Error response from daemon: driver failed programming external connectivity on endpoint memgpt-letta_nginx-1 (c5c9d18eb7bbb3ddb27d68650f9c3246c25ad7541ed93c8d955c2956ce2185c6): failed to bind port 0.0.0.0:80/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use

The problem is the letta_nginx service that wants to use port 80 of the host machine:

- "80:80"

Proposed solution:

I would love to have a new .env variable to define the LETTA_PORT for the reverse proxy, instead of hard-coding it to port 80

Sample:

  letta_nginx:
    ...
    ports:
      - "${LETTA_PORT:-80}:80"

Please describe your setup

  • Installation source: git clone
  • Setup: macOS, running letta locally via terminal & docker compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant