AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(rnd,market): Fix docker issues with market, and DB connection (#8050)
Aarushi93957068418d
diff --git a/rnd/docker-compose.yml b/rnd/docker-compose.ymlindex 07e6833146..1a10048b8a 100644--- a/rnd/docker-compose.yml+++ b/rnd/docker-compose.yml@@ -161,9 +161,9 @@ services:migrate:condition: service_completed_successfullyenvironment:- - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local?connect_timeout=60+ - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local?connect_timeout=60&schema=marketports:- - "8015:8000"+ - "8015:8015"networks:- app-networkdiff --git a/rnd/market/Dockerfile b/rnd/market/Dockerfileindex 9b572f7fd4..b6d7be6e02 100644--- a/rnd/market/Dockerfile+++ b/rnd/market/Dockerfile@@ -56,6 +56,6 @@ WORKDIR /app/rnd/marketFROM server_dependencies AS serverENV DATABASE_URL=""-ENV PORT=8000+ENV PORT=8015-CMD ["uvicorn", "market.app:app", "--reload"]+CMD ["poetry", "run", "app"]diff --git a/rnd/market/scripts.py b/rnd/market/scripts.pyindex c5ac2a60ab..9b3bf91407 100644--- a/rnd/market/scripts.py+++ b/rnd/market/scripts.py@@ -59,7 +59,7 @@ def format():def app():port = os.getenv("PORT", "8015")- run("uvicorn", "market.app:app", "--reload", "--port", port)+ run("uvicorn", "market.app:app", "--reload", "--port", port, "--host", "0.0.0.0")def setup():