Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ export AGENT_CONTROL_DB_HOST_PORT=15432
curl -L https://raw.githubusercontent.com/agentcontrol/agent-control/refs/heads/main/docker-compose.yml | docker compose -f - up -d
```

To override the bundled PostgreSQL password, set
`AGENT_CONTROL_POSTGRES_PASSWORD` before starting Compose. This value is used
for both the Postgres container and the server's database connection. Example:

```bash
export AGENT_CONTROL_POSTGRES_PASSWORD=agent_control_local
curl -L https://raw.githubusercontent.com/agentcontrol/agent-control/refs/heads/main/docker-compose.yml | docker compose -f - up -d
```

Verify it is up:

```bash
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Quick Start:
# docker compose up -d
# AGENT_CONTROL_SERVER_HOST_PORT=18000 AGENT_CONTROL_DB_HOST_PORT=15432 docker compose up -d
# AGENT_CONTROL_POSTGRES_PASSWORD=agent_control_local docker compose up -d
#
# Services:
# - PostgreSQL database (port 5432)
Expand All @@ -26,7 +27,7 @@ services:
environment:
POSTGRES_DB: agent_control
POSTGRES_USER: agent_control
POSTGRES_PASSWORD: agent_control
POSTGRES_PASSWORD: "${AGENT_CONTROL_POSTGRES_PASSWORD:-agent_control}"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
Expand All @@ -45,7 +46,7 @@ services:
environment:
# Database connection (uses Docker service name 'postgres')
# Use postgresql+psycopg:// (supports both sync migrations and async app code)
AGENT_CONTROL_DB_URL: postgresql+psycopg://agent_control:agent_control@postgres:5432/agent_control
AGENT_CONTROL_DB_URL: "postgresql+psycopg://agent_control:${AGENT_CONTROL_POSTGRES_PASSWORD:-agent_control}@postgres:5432/agent_control"
# Server configuration
AGENT_CONTROL_HOST: 0.0.0.0
AGENT_CONTROL_PORT: 8000
Expand Down
Loading