Purify Docs
Search…
Standalone

Overview

This deployment is based on a single image:
  1. 1.
    1. 1.
      static files served by the web server
In this deployment scenario, you need to provide load balancing and database layers on your own. Good example is to use it with something like Heroku and MongoDB Atlas.

Configuration

Create your own .env file based on this example:
1
# any random quite long string
2
JWT_SECRET=changeme
3
4
# pass uri with credentials if needed
5
MONGODB_URI=mongodb://root:[email protected]:27017
6
7
# just any string
8
DB_NAME=purify
9
10
# domain where purify is running, e.g. purify-demo.herokuapp.com
11
DOMAIN=purify-demo.herokuapp.com
Copied!

Start

1
docker run --env-file=.env.custom -p 8000:3000 faloker/purify
Copied!
Also, you can provide an environment variable PORT to start Purify instance on a specific port.