

This configuration allows Docker to run really fast. Open the following link in the browser: Server: mysql Find database credentials (in Docker configuration files), ex:ĭATABASE_URL=mysql://root: :3306/mydatabasenameĬ.

$ docker-compose up -d Step 5: Connect to the databaseĬ. (use your Ubuntu credentials here, we were using the ones in PHPStorm Deployment configuration) Open your SSH Client (ex: Cmder ) and connect to Ubuntu using SSH connection: – find the option ‘Upload change files automatically to the default server’ and set to ‘Always’ Step 4: ssh to Ubuntu, run DockerĪ. Set proper directories mapping in: Deployment / Mappings (to find the proper IP address, type the following command in your Ubuntu: ip a)ĭ. Click + (to add a new deployment config) – choose SFTP File / Settings / Build, Execution, Deployment – Deploymentī. – With this setup, we will instantly see the changes to our code in the browser.Ī. – PHPStorm Files’ deployment is configured in a way to automatically send files to Ubuntu.

– We have a GIT project cloned on the main Windows hard drive (SSD) We want to enable SSH connection to Ubuntu and we will be using it for local files’ “deployment”.
DOCKER FOR MAC MYSQL SLOW INSTALL
Install Linux on Windows 10 (Ubuntu 20.04 LTS from Microsoft store) Properly configured Docker and Windows WSL2 will give you really good performance in terms of speed. The “WSL 2” feature, released as Windows Update in mid 2020, was designed to increase file system performance and support full system call compatibility. and start Docker directly from Ubuntu in WindowsĬheck out the step by step tutorial below.Solution for Docker performance improvement Solution for Docker performance improvement.
