Skip to content

MySQL Database

Description

MySQL Database is a popular open-source relational database management system that allows you to store and manage data in a structured way. Its purpose is to provide a secure and efficient way to store, update, and retrieve data for various applications, from small websites to large enterprise systems. MySQL offers useful features like support for SQL, data replication, and indexing, making it a reliable choice for many developers and organizations. By using MySQL, users can easily manage and analyze their data, creating a solid foundation for their applications and services.

Docker Compose File

services:
  mysql-database:
    image: mysql:8.4.0
    hostname: mysql-database
    container_name: mysql-database
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
    ports:
      - "3306:3306"
    volumes:
      - mysql_data:/var/lib/mysql

volumes:
  mysql_data:

Notes

None