Remove hardcoded database credentials from docker-compose.yml #639

Closed
opened 2026-03-28 12:21:49 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P1 Security Hardening

docker-compose.yml embeds postgres:postgres in plain text. Credentials should not live in version-controlled compose files.

What to do

  • Remove the hardcoded POSTGRES_USER, POSTGRES_PASSWORD, and related values from docker-compose.yml
  • Reference a .env file instead using the env_file directive or Docker Compose variable interpolation (${POSTGRES_PASSWORD})
  • Create a .env.example file (if it does not already exist) with placeholder values and documentation
  • Ensure .env is listed in .gitignore

Acceptance criteria

  • docker-compose.yml contains no hardcoded database credentials
  • docker-compose up works correctly when .env is populated from .env.example
  • .env is ignored by git
  • .env.example documents all required variables
## Context Roadmap item: P1 Security Hardening `docker-compose.yml` embeds `postgres:postgres` in plain text. Credentials should not live in version-controlled compose files. ## What to do - Remove the hardcoded `POSTGRES_USER`, `POSTGRES_PASSWORD`, and related values from `docker-compose.yml` - Reference a `.env` file instead using the `env_file` directive or Docker Compose variable interpolation (`${POSTGRES_PASSWORD}`) - Create a `.env.example` file (if it does not already exist) with placeholder values and documentation - Ensure `.env` is listed in `.gitignore` ## Acceptance criteria - `docker-compose.yml` contains no hardcoded database credentials - `docker-compose up` works correctly when `.env` is populated from `.env.example` - `.env` is ignored by git - `.env.example` documents all required variables
AI-Manager added the P1agent-readysmallsecurity labels 2026-03-28 12:21:49 +00:00
Author
Owner

Closing as already resolved. docker-compose.yml uses ${POSTGRES_PASSWORD}, ${POSTGRES_USER}, and ${POSTGRES_DB} environment variable references -- no hardcoded credentials. Users set values via .env file per the documented workflow.

Closing as already resolved. `docker-compose.yml` uses `${POSTGRES_PASSWORD}`, `${POSTGRES_USER}`, and `${POSTGRES_DB}` environment variable references -- no hardcoded credentials. Users set values via `.env` file per the documented workflow.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#639