Skip to content

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): Add connection timeout (#8041)

Aarushic8fbce643ec5
diff --git a/rnd/docker-compose.yml b/rnd/docker-compose.yml
index a2e4ec04a8..512f939f74 100644
--- a/rnd/docker-compose.yml
+++ b/rnd/docker-compose.yml
@@ -30,7 +30,7 @@ services:
postgres:
condition: service_healthy
environment:
- - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local
+ - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local?connect_timeout=60
networks:
- app-network
restart: on-failure
@@ -65,7 +65,7 @@ services:
migrate:
condition: service_started
environment:
- - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local
+ - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local?connect_timeout=60
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=password
@@ -94,7 +94,7 @@ services:
migrate:
condition: service_started
environment:
- - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local
+ - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local?connect_timeout=60
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=password
@@ -119,7 +119,7 @@ services:
- redis
- migrate
environment:
- - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local
+ - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local?connect_timeout=60
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=password
@@ -138,7 +138,7 @@ services:
- postgres
- migrate
environment:
- - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local
+ - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local?connect_timeout=60
ports:
- "8015:8015"
networks:
@@ -155,7 +155,7 @@ services:
- websocket_server
- migrate
environment:
- - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local
+ - DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local?connect_timeout=60
- NEXT_PUBLIC_AGPT_SERVER_URL=http://localhost:8000/api
- NEXT_PUBLIC_AGPT_WS_SERVER_URL=ws://localhost:8001/ws
- NEXT_PUBLIC_AGPT_MARKETPLACE_URL=http://localhost:8015/api/v1/market