Skip to content

Commit c464e50

Browse files
committed
fix(docker): use 5432 for agent control server pg connection"
1 parent e264e09 commit c464e50

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ services:
4444
ports:
4545
- "${AGENT_CONTROL_SERVER_HOST_PORT:-8000}:8000"
4646
environment:
47-
# Database connection (uses Docker service name 'postgres')
48-
# Use postgresql+psycopg:// (supports both sync migrations and async app code)
49-
AGENT_CONTROL_DB_URL: "postgresql+psycopg://agent_control:${AGENT_CONTROL_POSTGRES_PASSWORD:-agent_control}@postgres:${AGENT_CONTROL_DB_HOST_PORT:-5432}/agent_control"
47+
# Database connection uses the Docker service name and the container port.
48+
# AGENT_CONTROL_DB_HOST_PORT only controls the host-side port mapping.
49+
AGENT_CONTROL_DB_URL: "postgresql+psycopg://agent_control:${AGENT_CONTROL_POSTGRES_PASSWORD:-agent_control}@postgres:5432/agent_control"
5050
# Server configuration
5151
AGENT_CONTROL_HOST: 0.0.0.0
5252
AGENT_CONTROL_PORT: 8000

0 commit comments

Comments
 (0)