File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,15 @@ export AGENT_CONTROL_DB_HOST_PORT=15432
7575curl -L https://raw.githubusercontent.com/agentcontrol/agent-control/refs/heads/main/docker-compose.yml | docker compose -f - up -d
7676```
7777
78+ To override the bundled PostgreSQL password, set
79+ ` AGENT_CONTROL_POSTGRES_PASSWORD ` before starting Compose. This value is used
80+ for both the Postgres container and the server's database connection. Example:
81+
82+ ``` bash
83+ export AGENT_CONTROL_POSTGRES_PASSWORD=agent_control_local
84+ curl -L https://raw.githubusercontent.com/agentcontrol/agent-control/refs/heads/main/docker-compose.yml | docker compose -f - up -d
85+ ```
86+
7887Verify it is up:
7988
8089``` bash
Original file line number Diff line number Diff line change 33# Quick Start:
44# docker compose up -d
55# AGENT_CONTROL_SERVER_HOST_PORT=18000 AGENT_CONTROL_DB_HOST_PORT=15432 docker compose up -d
6+ # AGENT_CONTROL_POSTGRES_PASSWORD=agent_control_local docker compose up -d
67#
78# Services:
89# - PostgreSQL database (port 5432)
@@ -26,7 +27,7 @@ services:
2627 environment :
2728 POSTGRES_DB : agent_control
2829 POSTGRES_USER : agent_control
29- POSTGRES_PASSWORD : agent_control
30+ POSTGRES_PASSWORD : " ${AGENT_CONTROL_POSTGRES_PASSWORD:- agent_control} "
3031 volumes :
3132 - pgdata:/var/lib/postgresql/data
3233 healthcheck :
@@ -45,7 +46,7 @@ services:
4546 environment :
4647 # Database connection (uses Docker service name 'postgres')
4748 # Use postgresql+psycopg:// (supports both sync migrations and async app code)
48- AGENT_CONTROL_DB_URL : postgresql+psycopg://agent_control:agent_control@postgres:5432/agent_control
49+ AGENT_CONTROL_DB_URL : " postgresql+psycopg://agent_control:${AGENT_CONTROL_POSTGRES_PASSWORD:- agent_control} @postgres:5432/agent_control"
4950 # Server configuration
5051 AGENT_CONTROL_HOST : 0.0.0.0
5152 AGENT_CONTROL_PORT : 8000
You can’t perform that action at this time.
0 commit comments