This project aims to demonstrate how to dockerize MedusaJS components. Check out my blog to discover more details. Dockerize MedusaJS Components
-
Node or NVM. If your environment is Windows, you may like nvm-windows
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
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