Open3

使いたいときに忘れる雑なMysqlのdocker-comopse

yohaneyohane
docker-compose.yml
version: '3'

services:
  db:
    container_name: db
    image: mysql:5.7
    platform: linux/x86_64
    ports:
      - "3306:3306"
    volumes:
      - ./db:/docker-entrypoint-initdb.d
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_USER: test
      MYSQL_PASSWORD: test
yohaneyohane

初期の流し込みに失敗した場合はVolumeもあわせて削除してからリトライ

削除
docker compose down -v