Alpine-Mysql

version: '3.7'
services:
  mysql:
    container_name: notes-db
    image: mysql:5.6
    volumes:
      - /home/mysql/data:/var/lib/mysql
    command: --character-set-server=utf8 
    environment:
      - MYSQL_ROOT_PASSWORD=root
      - MYSQL_DATABASE=notes
      - MYSQL_USER=notes
      - MYSQL_PASSWORD=notes
    restart: always
    ports:
      - '3306:3306'

Last updated