Skip to content

pxuanbach/medusa-ecommerce

Repository files navigation

Medusa E-commerce with Docker

This project aims to demonstrate how to dockerize MedusaJS components. Check out my blog to discover more details. Dockerize MedusaJS Components

ko-fi

Prerequisites

Quickstart

Run start-up.sh to reproduce the deployment steps for the development environments.

sh start-up.sh

# or 

./start-up.sh

Run start-up.prod.sh to reproduce the deployment steps for the production environments.

sh start-up.prod.sh

# or 

./start-up.prod.sh

Build Docker image

Explore Makefile to see the command.

  • Build Backend image

    # development
    docker build -t <your-image-name> ./backend
    
    # production
    docker build -t <your-image-name>:prod ./backend -f ./backend/Dockerfile.prod
  • Build Admin Panel image

    # production only
    docker build -t <your-image-name>:prod ./backend -f ./backend/Dockerfile.admin.prod
  • Build Storefront image

    # development
    docker build -t <your-image-name> ./storefront
    
    # production
    docker build -t <your-image-name>:prod ./storefront -f ./storefront/Dockerfile.prod

Contributors