No description or website provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Craft Kit - Node.js

This is the official craft kit for Node.js by Codemason.

$ mason craft nodejs

Craft kits let you Dockerize your application with one command. They are an excellent way to ease into building Docker powered apps without having to learn the ins and outs of Docker.

Then with Codemason, you can deploy your app to a server in a matter of minutes!


This guide assumes you have:


You will need to ensure you update your environment variables to match what is provided in the docker-compose.yml file.


Craft your Node.js app with Docker

$ mason craft nodejs

Add your Docker files to source control.

$ git add .
$ git commit -m "Docker"

Spin up your development environment with Docker (add the -d flag to the command to run in detached mode)

$ docker-compose up

That's all! You're now running your Node.js application with Docker!

Craft --with

You can even swap out the default services the Craft Kit uses by using the --with parameter.

$ mason craft nodejs --with="nodejs, mongodb"
  • Default: nodejs
  • Available: mongodb


Deploying is just as easy with Codemason. For more detailed instructions, see our documentation.

Create an application on Codemason for your app

$ mason create --application nodejs-app

Push your code to your Codemason Git remote to build it into a Docker image

$ git push codemason master 


$ mason deploy --to nodejs-app