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

:composeUp fails mysql ports declared but not found #149

Open
stephennewman-lab49 opened this issue Oct 25, 2021 · 2 comments
Open

:composeUp fails mysql ports declared but not found #149

stephennewman-lab49 opened this issue Oct 25, 2021 · 2 comments

Comments

@stephennewman-lab49
Copy link

I have followed the instruction to Building and running the application in docker compose.

The ./gradlew :composeUp command on a macbook pro M1 fails with
"These ports of service mysql are declared as exposed but cannot be found in NetworkSettings: 3306"

There are a lot of moving pieces here: any help will be gratefully received.

Great book by the way.

@stephennewman-lab49
Copy link
Author

stephennewman-lab49 commented Oct 26, 2021

When using docker-compose to simply create a mysql service, need to add platform: linux/amd64 on macbook pro M1 as in
`
services:

mysql:
image: mysql
platform: linux/amd64
`

Couldn't see anyway to add this to the dockerfile in the mysql directory of the book's code. Saw that can set the docker default platform to achieve the same
export DOCKER_DEFAULT_PLATFORM=linux/amd64

But didn't fix the problem

@KG2013
Copy link

KG2013 commented Jan 19, 2022

./mysql/Dockerfile

FROM mysql:5.7.13 --> FROM amd64/mysql

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

No branches or pull requests

2 participants