Open2
MYSQL
mysql clientをdocker で構築する
docker run -it --rm --entrypoint bash mysql
docker compose
mysql:
image: mysql:8.0.27
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-example}
MYSQL_DATABASE: ${MYSQL_DATABASE:-test}
restart: always
healthcheck:
test: "mysqladmin ping -h 127.0.0.1 -u root -p$$MYSQL_ROOT_PASSWORD"
timeout: 5s
interval: 5s
retries: 10