Skip to content

Commit

Permalink
Merge pull request #127 from data-catering/redash
Browse files Browse the repository at this point in the history
Add in redash
  • Loading branch information
pflooky authored Oct 5, 2024
2 parents f958cc0 + 1aaf7f7 commit afe0cd1
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/postgres/data/my_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ CREATE DATABASE kong;
CREATE DATABASE superset;
CREATE DATABASE superset_examples;
CREATE DATABASE metabase;
CREATE DATABASE redash;
59 changes: 59 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,65 @@ services:
ports:
- "5672:5672"
- "15672:15672"
redash:
command: scheduler
container_name: redash-scheduler
depends_on:
postgres:
condition: service_completed_successfully
redash-server:
condition: service_healthy
redis:
condition: service_healthy
environment:
PYTHONUNBUFFERED: 0
QUEUES: "queries,scheduled_queries,celery"
REDASH_COOKIE_SECRET: veryverysecret
REDASH_DATABASE_URL: "postgresql://postgres:postgres@postgres/redash"
REDASH_LOG_LEVEL: INFO
REDASH_REDIS_URL: "redis://redis:6379/0"
WORKERS_COUNT: 1
healthcheck:
interval: 5s
retries: 5
test: [CMD, /bin/sh, -c, /app/bin/docker-entrypoint workers_healthcheck]
timeout: 5s
image: "redash/redash:${REDASH_VERSION:-10.1.0.b50633}"
redash-data:
command: [/app/bin/docker-entrypoint, create_db]
container_name: redash-data
environment:
PYTHONUNBUFFERED: 0
REDASH_COOKIE_SECRET: veryverysecret
REDASH_DATABASE_URL: "postgresql://postgres:postgres@postgres/redash"
REDASH_LOG_LEVEL: INFO
REDASH_REDIS_URL: "redis://redis:6379/0"
image: "redash/redash:${REDASH_VERSION:-10.1.0.b50633}"
# REDASH_MAIL_SERVER: "smtp2http"
# REDASH_MAIL_DEFAULT_SENDER: "[email protected]"
redash-server:
command: server
container_name: redash
depends_on:
redash-data:
condition: service_completed_successfully
environment:
PYTHONUNBUFFERED: 0
REDASH_COOKIE_SECRET: veryverysecret
REDASH_DATABASE_URL: "postgresql://postgres:postgres@postgres/redash"
REDASH_LOG_LEVEL: INFO
REDASH_REDIS_URL: "redis://redis:6379/0"
REDASH_WEB_WORKERS: 4
healthcheck:
interval: 5s
retries: 5
test: [CMD, curl, --output, /dev/null, --silent, --head, --fail, http://localhost:5000/ping]
timeout: 5s
image: "redash/redash:${REDASH_VERSION:-10.1.0.b50633}"
# REDASH_MAIL_SERVER: "smtp2http"
# REDASH_MAIL_DEFAULT_SENDER: "[email protected]"
ports:
- "5000:5000"
redis:
container_name: redis
healthcheck:
Expand Down

0 comments on commit afe0cd1

Please sign in to comment.