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

feat: move docker run command to use port 8283 #1949

Merged
merged 4 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}

COPY ./letta /letta

EXPOSE 8083
EXPOSE 8283

CMD ./letta/server/startup.sh

Expand Down
2 changes: 1 addition & 1 deletion docker-compose-vllm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
letta:
image: lettaai/letta:latest
ports:
- "8083:8083"
- "8283:8283"
environment:
- LETTA_LLM_ENDPOINT=http://vllm:8000
- LETTA_LLM_ENDPOINT_TYPE=vllm
Expand Down
4 changes: 2 additions & 2 deletions letta/server/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
echo "Starting MEMGPT server..."
if [ "$MEMGPT_ENVIRONMENT" = "DEVELOPMENT" ] ; then
echo "Starting in development mode!"
uvicorn letta.server.rest_api.app:app --reload --reload-dir /letta --host 0.0.0.0 --port 8083
uvicorn letta.server.rest_api.app:app --reload --reload-dir /letta --host 0.0.0.0 --port 8283
else
uvicorn letta.server.rest_api.app:app --host 0.0.0.0 --port 8083
uvicorn letta.server.rest_api.app:app --host 0.0.0.0 --port 8283
fi
6 changes: 3 additions & 3 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ http {
server {
listen 80;
listen [::]:80;
listen 8083;
listen [::]:8083;
listen 8283;
listen [::]:8283;
listen 8283;
listen [::]:8283;
server_name letta.localhost;
set $api_target "http://letta-server:8083";
set $api_target "http://letta-server:8283";
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
Expand Down
Loading