Skip to content

Commit a9b5564

Browse files
committed
Revert "feat(server): Override PG password in dockerfile (#143)"
This reverts commit b364cab.
1 parent c5354e3 commit a9b5564

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

‎README.md‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,6 @@ export AGENT_CONTROL_DB_HOST_PORT=15432
7575
curl -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-
8778
Verify it is up:
8879

8980
```bash

‎docker-compose.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
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
76
#
87
# Services:
98
# - PostgreSQL database (port 5432)
@@ -27,7 +26,7 @@ services:
2726
environment:
2827
POSTGRES_DB: agent_control
2928
POSTGRES_USER: agent_control
30-
POSTGRES_PASSWORD: "${AGENT_CONTROL_POSTGRES_PASSWORD:-agent_control}"
29+
POSTGRES_PASSWORD: agent_control
3130
volumes:
3231
- pgdata:/var/lib/postgresql/data
3332
healthcheck:
@@ -46,7 +45,7 @@ services:
4645
environment:
4746
# Database connection (uses Docker service name 'postgres')
4847
# 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:5432/agent_control"
48+
AGENT_CONTROL_DB_URL: postgresql+psycopg://agent_control:agent_control@postgres:5432/agent_control
5049
# Server configuration
5150
AGENT_CONTROL_HOST: 0.0.0.0
5251
AGENT_CONTROL_PORT: 8000

0 commit comments

Comments
 (0)