Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait until db ready #231

Merged
merged 14 commits into from
Mar 15, 2024
Merged

Wait until db ready #231

merged 14 commits into from
Mar 15, 2024

Conversation

jhazentia
Copy link
Member

@jhazentia jhazentia commented Apr 18, 2023

This pull request configures the api container to wait to start until the database container is healthy.

It looks like docker-compose v2 is needed unless using an old version of docker (then latest docker-compose v1 might work).

Not sure if the database error is still reproducible. But testing with this branch, I did not see any errors for the following:

  1. Starting docker.
  2. Restart host while docker is running.
  3. Power cycling the signal analyzer then using monitor action to restart container.
  4. Stopping containers, restarting host, then starting containers.

Also includes a small change to create_localhost_cert.sh to combine the cp/mv commands.

@jhazentia jhazentia marked this pull request as ready for review March 12, 2024 21:09
docker-compose.yml Outdated Show resolved Hide resolved
@dboulware dboulware merged commit 82aabc2 into master Mar 15, 2024
4 checks passed
@jhazentia jhazentia deleted the wait_until_db_ready branch March 15, 2024 21:57
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.

None yet

2 participants