Install docker
and docker-compose
Create the docker-compose.yml
as shown below
Run the following commands
$ docker-compose -f docker-compose.yml up$ docker-compose run freshlytics npm run migrate$ docker-compose run freshlytics npm run seed
The docker image is hosted at https://hub.docker.com/r/freshlytics/freshlytics​
This service depends on PipelineDB for data storage: https://hub.docker.com/r/pipelinedb/pipelinedb/​
Here's an example docker compose file to run this application:
version: "3"​services:freshlytics:image: freshlytics/freshlyticsports:- "80:3001"environment:- DATABASE_URL=postgres://postgres:[email protected]:5432/freshlytics- NODE_ENV=productioncommand: npm startdepends_on:- db​db:image: pipelinedb/pipelinedb-postgresql-11environment:- POSTGRES_PASSWORD=hunter2- POSTGRES_DB=freshlyticsvolumes:- ./tmp/db:/var/lib/postgresql/data