[null, {"document_url": "https://blog.ruanbekker.com/blog/2017/11/13/local-dev-environment-with-docker-mysql-and-adminer-webui-with-docker-compose/", "unformatted_src": "https://i.snag.gy/m8dUxe.jpg", "src": "https://i.snag.gy/m8dUxe.jpg", "formatted_filename": "m dUxe"}, null, {"document_url": "https://blog.ruanbekker.com/blog/2017/11/13/local-dev-environment-with-docker-mysql-and-adminer-webui-with-docker-compose/", "unformatted_src": "https://i.snag.gy/tPVbg6.jpg", "src": "https://i.snag.gy/tPVbg6.jpg", "formatted_filename": "tPVbg"}, null]
Let’s setup a local development environment with Docker, MySQL and Adminer WebUI using Docker Compose

Docker Compose File:

Let’s look at our docker-compose file:

Environment Variables for the MySQL Docker image is:

More info can be viewed on this resource: hub.docker.com/_/mysql/


Let’s create our pre-requirement:

Our Volume for MySQL so that we have persistent data:

Our workspace directory that will be persistent in our debug-client alpine container:

Launching our Services:

Let’s launch our services:

Listing our Containers:

Using the Debug Container:

I will use the debug container as the client to connect to the internal services, for example, the mysql-client:

Also, you will find the persistent data directory for our workspace:

Accessing the MySQL WebUI: Adminer

Access the service via the exposed endpoint:

The login view: Creating the Table: Deleting the Environment:

The External Resources will not be deleted:


