Installation

Instructions

  • Install docker and docker-compose
  • Create the docker-compose.yml as shown below
  • Run the following commands
1
$ docker-compose -f docker-compose.yml up
2
$ docker-compose run freshlytics npm run migrate
3
$ docker-compose run freshlytics npm run seed
Copied!

Images

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/​

Example compose file

Here's an example docker compose file to run this application:
1
version: "3"
2
​
3
services:
4
freshlytics:
5
image: freshlytics/freshlytics
6
ports:
7
- "80:3001"
8
environment:
9
- DATABASE_URL=postgres://postgres:[email protected]:5432/freshlytics
10
- NODE_ENV=production
11
command: npm start
12
depends_on:
13
- db
14
​
15
db:
16
image: pipelinedb/pipelinedb-postgresql-11
17
environment:
18
- POSTGRES_PASSWORD=hunter2
19
- POSTGRES_DB=freshlytics
20
volumes:
21
- ./tmp/db:/var/lib/postgresql/data
Copied!
Last modified 2yr ago