Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.16 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.16 KB

MySQL and Adminer

Docker compose with MySQL and Adminer, for local development.

Overview

This repository contains a Docker Compose configuration for setting up a local environment with MySQL and Adminer.

Prerequisites

Before you begin, ensure you have the following installed on your machine:

Getting Started

Follow these steps to set up and run.

  1. Clone this repository:

    git clone https://github.com/brunoxz10/mysql-docker-compose.git
    
  2. Navigate to the project directory:

    cd mysql-docker-compose
    
  3. Change MYSQL_ROOT_PASSWORD if you want.

  4. Run the Docker Compose command to start the services:

    docker-compose up -d
    

This command will download the necessary Docker images and start the MySQL and Adminer containers.

  1. Access Adminer in your web browser: Adminer URL: http://localhost:8080

  2. Login:
    System: MySQL
    Server: db
    Username: root
    Password: As specified in MYSQL_ROOT_PASSWORD

  3. Stopping the Environment
    This will stop and remove the containers.

    docker-compose down