Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 969 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 969 Bytes

analytics

Analytics is a Spring Boot application that receives POST request from Andy and stores them in a database for visualizations using Redash.

Docker

Install

Install Docker Engine and Docker Compose.

Clone the repository.

Make a directory called postgres-data.

Create a file called env and put following variables.

PYTHONUNBUFFERED=0
REDASH_LOG_LEVEL=INFO
REDASH_REDIS_URL=redis://redis:6379/0
POSTGRES_PASSWORD=<your database password>
REDASH_COOKIE_SECRET=<your cookie secret>
REDASH_SECRET_KEY=<your secret key>
REDASH_DATABASE_URL=postgresql://postgres:<your database password>@postgres/postgres

Run docker-compose run --rm server create_db.

Run docker-compose run --rm postgres psql -h postgres -U postgres -c "CREATE DATABASE analytics;".

Deploy

Run docker-compose up -d.