Skip to content

Fix Docker startup with a fresh PostgreSQL database - #11

Merged
rezerov merged 1 commit into
mainfrom
codex/fix-docker-startup
Sep 26, 2026
Merged

rezerov merged 1 commit into
mainfrom
codex/fix-docker-startup

Conversation

@rezerov

@rezerov rezerov commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

A fresh docker compose up --build -d can start the gateway before PostgreSQL finishes initialization, causing the gateway to crash and preventing the control plane and dashboard from starting. Make both database clients wait for a healthy PostgreSQL service, and probe PostgreSQL over TCP so its temporary Unix-socket initialization server cannot satisfy the health check.

Extend CI's container check to start the complete stack with a fresh database, probe the gateway, control plane and dashboard, and reject container restarts. The check prints logs on failure and cleans up its containers and volume.

Validation:

  • Fresh database: all four services started, all three HTTP probes passed, zero container restarts.
  • Existing database: recreated the stack, verified a stored sentinel row was retained, and repeated the HTTP/restart checks.
  • Compose configuration, CI shell syntax and git diff --check passed.

@rezerov
rezerov merged commit 2021fda into main Sep 26, 2026
1 check passed
@rezerov
rezerov deleted the codex/fix-docker-startup branch September 26, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant