You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): give each preview its own network and resolvable services
The first real preview deployment failed with UnknownHostException: postgres.
Coolify renames every compose service to `<service>-pr-<id>`, so the bare
service name resolves to nothing inside a preview; it publishes the renamed
hosts as SERVICE_NAME_*, which the appserver now uses for its database and
NATS URLs.
Diagnosing that surfaced a second defect. Coolify runs every preview of an
application under one Compose project, named after the application UUID with no
pull request in it, so the networks this file declared were `<uuid>_backend` and
`<uuid>_frontend` for all previews at once — two concurrent previews would have
shared them, and one could reach the other's database. Coolify's proxy was never
on those networks anyway; it joins the per-preview network it creates. The stack
now declares none, and check-preview-stack.ts fails if one comes back.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017VKWqbmrPJFv8aKZBp36uD
0 commit comments