Deployment From Docker
Docker, a containerization platform, provides a powerful solution for simplifying the deployment process, enhancing portability, and ensuring a consistent runtime environment for your e-commerce application.
Whether you're a seasoned DevOps engineer or a developer looking to streamline your application deployment, this is the step-by-step guide to help you setup Spurtcommerce Multi-Vendor Marketplace application using Docker.
Prerequisites:
To setup Spurtcommerce from docker, you need to install a few tools and software in your local or server.
Git: Spurtcommerce uses Git, a distributed version control system (VCS), it in various stages of its product development. The Docker image for Spurtcommerce is available in GIT as well.
You can install GIT from here
Docker: Install Docker in your system by following these steps:
Download Docker: Visit the official Docker website and download the Docker Desktop or Docker Engine suitable for your operating system. Follow the installation instructions for your OS.
Start Docker: After installation, start the Docker service. It should run in the background.
Verify Installation: Open a terminal or command prompt and run the following command to ensure Docker is correctly installed and running:
You should see the installed Docker version.
Steps to setup Spurtcommerce application:
Once you have installed the GIT & Docker as mentioned in the prerequisites section, you are good to proceed with setting up your local (or) server with Docker.
Step 1:
Clone the Git repository that contains the Spurtcommerce Docker image from here using the “git clone” command.
Step 2:
Open your terminal and navigate to the directory where the repository has been cloned. You should see the directory by the name “docker-spurtcommerce”.
This confirms that the Spurtcommerce Docker Images have been successfully pulled from the GIT repository. You can now use these images to run containers on your system.
Step 3:
Having already built the Spurtcommerce Docker images you can run docker compose without the --build flag and by using the command “docker compose up” command. This will take some time to get complete.
Step 4:
Ensure that the Docker container is running by using the “docker ps” command.
The output will display information about the running and stopped containers, including their names, IDs, and other details and among that you will see Spurtcommerce container details as follows:
That’s it!! Spurtcommerce Multi-Vendor markeplace application is successfully setup on your system and is now running with each of the services occupying the following ports:
Step 5:
Optionally, you could modify certain additional parameters to point to your own configurations such as (a) send/receive emails (2) AWS S3 storage bucket etc.
Navigate to .env file in the directory /docker-spurtcommerce/config and change the “Mail Configuration” using the following variables.
AWS S3 Storage configurations can be modified using the following variables.
Launch Spurtcommerce in your local (or) server:
Check that the Spurtcommerce marketplace application is ready to use from http://{your-domian or IP}:{your-port} (or) http://localhost:3000/
Vendor Panel can be accessed by http://{your-domian or IP}:{your-port}/vendor/#/auth/login and Admin panel be accessed by http://{your-domian or IP}:{your-port}/admin/#/auth/login
Admin panel - Default credentials:
username: marketplace@spurtcart.com
password: Piccosoft2012
By following these steps and embracing the power of Docker, you're well on your e-commerce journey and specifically with Spurtcommerce multi-vendor solution, you'll be better equipped to adapt to the ever-changing demands of the online marketplace.
Last updated