Skip to content

sojohnnysaid/mysql-workbench-docker-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🐬 MySQL Workbench Docker Setup 🐳

This project provides a quick and easy way to set up MySQL and MySQL Workbench in Docker containers. Perfect for development environments or quick database management tasks! πŸš€

🎯 Purpose

The purpose of this setup is to:

  • Quickly spin up a MySQL database πŸ“Š
  • Provide a web-based MySQL Workbench interface πŸ–₯️
  • Ensure data persistence across container restarts πŸ’Ύ

🏁 Quickstart

  1. **Clone the repo and jump into the directory

    git clone https://github.com/sojohnnysaid/mysql-workbench-docker-setup.git
    cd mysql-workbench-docker-setup
    
  2. Start the Containers: Navigate to the directory where your docker-compose.yml file is located and start your Docker environment.

    docker-compose up -d
  3. Access MySQL Workbench:

  4. Connect to your MySQL database:

    • 🏠 Hostname: db
    • πŸšͺ Port: 3306
    • πŸ‘€ Username: root
    • πŸ”‘ Password: rootpassword

πŸ”„ Using Bind Mounts

Bind mounts are utilized in this Docker setup to link directories on your host machine to directories in your Docker container. This setup uses bind mounts for dynamic file sharing, ensuring that your configurations and data persist between container restarts.

  • Dynamic: Changes to files in the host directory are immediately reflected in the container, and vice versa.
  • Persistent: Custom configurations and data are preserved across container restarts and updates.

πŸ› οΈ Configuration

Modify the docker-compose.yml file to change database credentials, port mappings, or volume locations. Remember to rebuild your containers after making changes!

πŸ›‘ Stopping the Containers

To stop and remove the containers, run:

docker-compose down

πŸŽ‰ Happy Coding!

image

About

MySQL and workbench server quickstart on Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published