Commit Graph
5 Commits
Author SHA1 Message Date
John Colvin 99da1d3dc3 Add api server to docker compose 2024-10-21 13:29:59 +00:00
John Colvin 48832dd75d Rename pingtest "sparkd-ping-test", make it depend on sparkd
Add it to a "ping-test" profile, as we may add similar tests for other services
2024-10-21 13:29:59 +00:00
John Colvin 60f1165dae cleanup: Remove unnecessary env vars from webapp docker compose 2024-10-21 13:29:59 +00:00
John Colvin 6fef5410a2 fix: Ensure md-publisher waits for pubsub and sparkd
Bugs (fixed):
  * md-publisher silently fails if it tries to connect before those services are "ready".

The Docker compose "depends_on" property ensures sparkd and pubsub
containers are up, but doesn't prevent startup race bugs (e.g., if
md-publisher and pubsub start around the same time, and md-publisher
tries to connect before pubsub has started accepting connections). To
address these race conditions, we use a nifty tool called "dockerize"

References:
  * https://github.com/jwilder/dockerize
2024-10-21 13:29:59 +00:00
John Colvin 6a881c8f2b Configure apps as a distributed system via Docker compose 2024-10-21 13:29:59 +00:00