I'm trying to get the official mysql docker image to run on apple silicon.
It does compose and boot up, but it only has 1 log entry and does not do anything else afterwards:
2021-08-04 14:39:12+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.35-1debian10 started.
My docker-compose file looks like this:
database:
platform: linux/amd64 // I also tried linux/x86_64
image: mysql:5.7.35
ports:
- 3306:3306
volumes:
- ./mysql/create_dbs.sql:/docker-entrypoint-initdb.d/create_dbs.sql
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_DATABASE=cars
- MYSQL_USER=cars
- MYSQL_PASSWORD=cars
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
Is there something else that needs to be done in order to get it working?