Skip to content

Instantly share code, notes, and snippets.

@osamu
Created March 25, 2019 12:35
Show Gist options
  • Save osamu/e1d5acdbea4db6f36182304032a99ec9 to your computer and use it in GitHub Desktop.
Save osamu/e1d5acdbea4db6f36182304032a99ec9 to your computer and use it in GitHub Desktop.
Docker-composeでmysql5.7がsetupされない問題
version: '3'
services:
 db:
   image: mysql:5.7
   command: --datadir=/var/lib/mysql/data
   environment:
     MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
   volumes:
    - ./tmp/db/mysql:/var/lib/mysql/data
   ports:
    - "3306:3306"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment