Skip to content

fix(deploy): correct production tmpfs and builder binding - #1

Merged
hello-jackytruong merged 2 commits into
devfrom
feat/production-compose-runtime
Nov 23, 2026
Merged

hello-jackytruong merged 2 commits into
devfrom
feat/production-compose-runtime

Conversation

@hello-jackytruong

Copy link
Copy Markdown
Owner

Deployment failed because YAML split the executor's tmpfs options into separate mount paths, causing nodev to be rejected as a relative mount. Builder then failed its loopback health check because Docker's default HOSTNAME made Next.js bind to the container hostname; the production probe returned ECONNREFUSED on 127.0.0.1 and HTTP 200 on the container hostname.

Quote the complete tmpfs mount string and explicitly set Builder HOSTNAME to 0.0.0.0 in docker-compose.production.yml. Add a regression test that runs real Docker Compose configuration parsing and checks both resolved settings. These persist the fixes already verified on production.

Validation:

  • pnpm lint passed.
  • node --test scripts/deployment/production.test.mjs passed: 14 tests, 0 failures.
  • git diff --check passed.

Only the production Compose configuration and its deployment test are included. No application TypeScript or database schema changed.

@github-actions github-actions Bot added the bug Something isn't working label Nov 23, 2026
@hello-jackytruong
hello-jackytruong marked this pull request as ready for review November 23, 2026 01:36
@hello-jackytruong
hello-jackytruong merged commit b185f8f into dev Nov 23, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant