A simple project on how to set up MySQL database with Docker with phpmyadmin as client interface.
To run this project, you will need to add the following environment variables to your .env file
MYSQL_DATABASE
MYSQL_ROOT_PASSWORD
MYSQL_USER
MYSQL_PASSWORD
Clone the project
git clone https://github.com/aimanamri/test-docker-app.git
Go to the project directory
cd test-docker-app
Start the server using Docker
docker-compose up -d
This project will run on localhost:8001
for phpmyadmin and localhost:80
for simple webpage.
docker exec -it sql_container bash -l
Replace sql_container
with your MySQL Docker container ID.
Client: phymyadmin, php
Server: mysql
If you have any feedback, please open new issue here.