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

This commit is contained in:
Sarah Wooders 2024-10-28 13:57:30 -07:00 committed by GitHub
parent 0768b96093
commit 9302c56933
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 9 deletions

View File

@ -41,7 +41,7 @@ jobs:
# install-args: "--all-extras"
- name: Wait for service
run: bash scripts/wait_for_service.sh http://localhost:8083 -- echo "Service is ready"
run: bash scripts/wait_for_service.sh http://localhost:8283 -- echo "Service is ready"
- name: Run tests with pytest
env:
@ -50,7 +50,7 @@ jobs:
LETTA_PG_PASSWORD: letta
LETTA_PG_PORT: 8888
LETTA_SERVER_PASS: test_server_token
LETTA_SERVER_URL: http://localhost:8083
LETTA_SERVER_URL: http://localhost:8283
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PYTHONPATH: ${{ github.workspace }}:${{ env.PYTHONPATH }}
run: |

View File

@ -32,7 +32,7 @@ COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
COPY ./letta /letta
EXPOSE 8083
EXPOSE 8283
CMD ./letta/server/startup.sh

View File

@ -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

View File

@ -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

View File

@ -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;