Skip to content

Replace wait-for-it with Docker Compose healthchecks#184

Open
briannadelvalle-datadog wants to merge 1 commit into
TRAIN-3546-frontend-docker-overhaulfrom
TRAIN-3546-docker-compose-healthchecks
Open

Replace wait-for-it with Docker Compose healthchecks#184
briannadelvalle-datadog wants to merge 1 commit into
TRAIN-3546-frontend-docker-overhaulfrom
TRAIN-3546-docker-compose-healthchecks

Conversation

@briannadelvalle-datadog

Copy link
Copy Markdown

Summary

  • Adds healthcheck blocks to all services and converts depends_on to condition-based gating (service_healthy/service_started) in both compose files.
  • Removes the wait-for-it package from the backend, ads (Python), and discounts Dockerfiles, adding netcat-openbsd where the healthcheck needs nc.
  • Adds a backend .dockerignore and sources Postgres credentials from the environment in database.yml.
  • Fixes a ddprofrb execrails typo in the backend Dockerfile CMD.
  • Adds CHANGELOG.md for backend/ads/discounts and updates the ads README compose example.

Stack

Part of the TRAIN-3546 split. Base: TRAIN-3546-frontend-docker-overhaul (shares the frontend compose block). Merge after #183.

Test plan

  • docker compose up and confirm services become healthy and dependents start in order.

Made with Cursor

Add healthcheck blocks to all services and convert depends_on to
condition-based gating (service_healthy/service_started) in both
compose files. Drop the wait-for-it package from the backend, ads
(Python), and discounts Dockerfiles, adding netcat-openbsd where the
healthcheck needs nc. Add a backend .dockerignore and source the
Postgres credentials from the environment in database.yml.

Also fix a "ddprofrb execrails" typo in the backend Dockerfile CMD.

Co-authored-by: Cursor <cursoragent@cursor.com>
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