Docker compose with MySQL and Adminer, for local development.
This repository contains a Docker Compose configuration for setting up a local environment with MySQL and Adminer.
Before you begin, ensure you have the following installed on your machine:
Follow these steps to set up and run.
-
Clone this repository:
git clone https://github.com/brunoxz10/mysql-docker-compose.git
-
Navigate to the project directory:
cd mysql-docker-compose
-
Change MYSQL_ROOT_PASSWORD if you want.
-
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.
-
Access Adminer in your web browser: Adminer URL: http://localhost:8080
-
Login:
System: MySQL
Server: db
Username: root
Password: As specified in MYSQL_ROOT_PASSWORD -
Stopping the Environment
This will stop and remove the containers.docker-compose down