Local Docker Setup for SFTP Server
Prerequisites
Docker installation is completed in the system. In the below example, colima is used on Mac System.
Step 1: Start the colima with colima start

Step 2: Configure docker in Intellij
Install the Docker plugin in Intellij - https://plugins.jetbrains.com/plugin/7724-docker
Configure the Docker plugin

To find the TCP socket - Engine API URL for colima, run docker context ls command. Sample value is given below.

Configure the Docker executable and Compose executable

To find Docker executable and Docker Compose executable, run the below command

Step 3: Prepare the docker-compose file
Save the below content in docker-compose file
docker-compose.yml
Since, we are attaching a volume of local sftp_test_data folder, create a folder and add some test files there.

Step 4: Run the docker-compose file

Step 5: Connect the sftp server via any tools
Here, we will use FileZilla Client. Download and Install the FileZilla client from below url
https://filezilla-project.org/download.php?type=client#close
Open the FileZilla Client

Add below details as we configure in docker-compose file

Click on Quickconnect and click on OK

Remote site details should be visible now

Last updated