To make this a bit easier I've put this up on github:
You can deploy directly from github in Portainer:
Supply the env vars as shown here and hit deploy.