AppsDatabasesmysqlOfficial Mysql

Official MySQL Image

Directory Structure

    • .env
    • docker-compose.yml

docker-compose.yml

version: '3.1'
 
services:
  db:
    image: mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example
    # (this is just an example, not intended to be a production configuration)
    volumes:
      - /path/to/mysql-persistence:/mysql/data 

Resources

GitHub: https://github.com/docker-library/mysql

Docker Hub: https://hub.docker.com/_/mysql

Configuration: See the Docker Hub page