fix(rnd,market): Fix docker issues with market, and DB connection (#8050)

fix docker issues with market, and DB connection
This commit is contained in:
Aarushi
2024-09-13 16:15:06 +01:00
committed by GitHub
parent a98677b79d
commit 9395706841
3 changed files with 5 additions and 5 deletions

View File

@@ -161,9 +161,9 @@ services:
migrate:
condition: service_completed_successfully
environment:
- 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=market
ports:
- "8015:8000"
- "8015:8015"
networks:
- app-network

View File

@@ -56,6 +56,6 @@ WORKDIR /app/rnd/market
FROM server_dependencies AS server
ENV DATABASE_URL=""
ENV PORT=8000
ENV PORT=8015
CMD ["uvicorn", "market.app:app", "--reload"]
CMD ["poetry", "run", "app"]

View File

@@ -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():