fix(rnd): Add connection timeout (#8041)

add connection timeout
This commit is contained in:
Aarushi
2024-09-11 18:32:07 +01:00
committed by GitHub
parent 6c001bd595
commit c8fbce643e

View File

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