Skip to content

Fix #759 - railsserver add healthcheck#563

Open
derpixler wants to merge 2 commits intomasterfrom
fixes-759-graceful-handling-unseeded-database
Open

Fix #759 - railsserver add healthcheck#563
derpixler wants to merge 2 commits intomasterfrom
fixes-759-graceful-handling-unseeded-database

Conversation

@derpixler
Copy link
Copy Markdown
Contributor

@derpixler derpixler commented Apr 7, 2026

Fix #759 - railsserver add healthcheck to check if localhost:3000 available

@derpixler derpixler force-pushed the fixes-759-graceful-handling-unseeded-database branch from 0d1533f to 457b5c7 Compare April 9, 2026 07:25
Comment thread docker-compose.yml Outdated
<<: *zammad-service
command: ["zammad-railsserver"]
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:3000"]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ZAMMAD_RAILSSERVER_PORT is configurable. Are you sure that localhost is safe to get used here in the container?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right — ZAMMAD_RAILSSERVER_PORT is documented. The healthcheck shouldn't hardcode 3000; I'll update it to http://127.0.0.1:${ZAMMAD_RAILSSERVER_PORT:-3000}.

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.

2 participants