-
Notifications
You must be signed in to change notification settings - Fork 85
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
Project stuck on "website-web-1 | Waiting for PostgreSQL to become available..." on M1 Mac #139
Comments
Thanks for your report When you develop on M1 Mac, could you update the Since I have no M1/M2 Mac in hand so I can not not test if it works, but I hope it can help. Thx. |
Thank you for the reply. Unfortunately updating to postgres arm image didn't fix the problem. docker-compose.yml file for reference |
I did some research on this issue and figured it out Why this issue happenOn apple silicon, we got Postgresql SCRAM authentication problem? so the program hang with "Waiting for PostgreSQL to become available" message. SolutionWe can use Rosetta to make our program work with "linux/amd64" instead of the "arm64" Below are the steps:
And then run command below
I already tested it on real M1 Mac and it worked. Thx |
Thanks a lot it worked. |
What happened?
I've followed the steps described on the e-book "Build Blog With Wagtail CMS (4.0.0)" on my M1 Mac and when Dockerizing the project (Chapter 4) I start encountering this issue.
The docker image and container build just fine but when I run the docker-compose logs -f command I encounter this issue
Additional details
I've followed the steps correctly, and the Dockerfile, the entrypoint, the start and the docker-compose.yml all match the book.
With the exact same configuration on my Windows 10 PC I don't encounter any problems at all.
The text was updated successfully, but these errors were encountered: