Skip to content

Bench 8768 yp#411

Merged
PeterSu92 merged 9 commits into
masterfrom
BENCH-8768_yp
May 14, 2026
Merged

Bench 8768 yp#411
PeterSu92 merged 9 commits into
masterfrom
BENCH-8768_yp

Conversation

@PeterSu92
Copy link
Copy Markdown
Contributor

@PeterSu92 PeterSu92 commented May 13, 2026

Summary

Playground app has been 502ing because postgres 18 moved the default data directory from /var/lib/postgresql/data to a version-specific subdirectory (/var/lib/postgresql/18/docker). Our named volume was still mounted at the old path, so pg18 ignored it entirely, failed to init, and exited. Since the playground service depends on db being healthy, it never started either — Caddy couldn't resolve the upstream and returned 502s. Official docs: https://hub.docker.com/_/postgres

Fix: mount the volume at /var/lib/postgresql instead, which is what the official postgres docker image now expects for 18+. This is also forward-compatible with future major
versions.

Ref: docker-library/postgres#1259

Test plan

  • Spin up playground app, confirm db container starts and passes its healthcheck
  • Confirm playground service comes up and is reachable through Caddy (no 502)

I tested both in a GCP workspace

@pantherman594
Copy link
Copy Markdown
Contributor

Thank you!

@PeterSu92 PeterSu92 merged commit 0171fa8 into master May 14, 2026
3 checks passed
@PeterSu92 PeterSu92 deleted the BENCH-8768_yp branch May 14, 2026 14:52
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.

3 participants