To work with an IDE like phpstorm or eclipse on your host system you need to sync your code into the container. The integrated file sharing solution from docker cannot be used because of very bad performance.
Through built-in EZ Sync App of ADM 3.2 and ASUSTOR EZ Sync for computer, data from computer can be synchronized to the NAS at any time from anywhere. With EZ Sync and AES, your NAS will be your personal Dropbox with ample capacity at your fingertip with time version. Oct 08, 2018.
To have a good performance we need to sync the files from the host system into the container.
For the two way file-synchronization we use the great tool Unison.
Setup Unison on Windows
To work with Unison it's very important to have the right versions installed.
Please follow the instructions step by step.
Step 1: Download and Install OpenSSH
Step 2: Download Unison
Download Unison and extract files to: C:Program Filesunison
Step 3: Create a sync.bat file for each project you want to sync
In our example, we want to sync the files from our host system into the container from
C:UsersstefanPhpstormProjectsmagento2.mgt
to
/home/cloudpanel/htdocs/magento2.mgt/
For this we create the file:
C:UsersstefanPhpstormProjectsmagento2.mgtbinsync.bat
with the following content:
Unison File Sync
Step 4: Start file synchronization
Unison File
To start the file synchronization open the PowerShell and run sync.bat file