We have two sections in this repository. One is docker compose to help lauch a redash system. And another hand is a docker render png image from redash's queries url.
Currently, redash has not supported an api to generate image/pdf file. Docker render will help us create an image from a redash url and push it to us slack channel on schedule.
- Make sure you have a Docker machine up and running.
- Make sure your current working directory is
redash
of this GitHub repository. - Use the
.env
configuration and modifyCHANGE_ME
values by your values as needed.
DATABASE_PASSWORD=CHANGE_ME
COOKIE_SECRET=CHANGE_ME
PORT_EXPOSE=CHANGE_ME
- The Postgres volume location is persistent in
data/postgres-data/
directory. - Run
docker-compose -f docker-compose.yml run --rm server create_db
to setup the database. - Run
docker-compose -f docker-compose.yml up
to start all of redash components - Redash should be available on
PORT_EXPOSE
port, of the host machine.
By default, the image reports will be sent to slack channel at 12PM and 6PM everyday when your container run correctly.
- Go to
render
directory. - Modify
CHANGE_ME
values by your values in config.json file - Run
docker build -t redash_render .
- Run
docker run -d redash_render
The query id is last character numeric value after /queries/
in your url in the redash dashboard
If your query uri is http://localhost/queries/1#3
, queries id is 1#3