mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-09 15:17:59 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user