Created
October 19, 2018 18:06
-
-
Save cookejames/553264b778cd8322b806961d40d8fbb7 to your computer and use it in GitHub Desktop.
docker-compose local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an example configuration for Docker Compose. Make sure to atleast update | |
# the cookie secret & postgres database password. | |
# | |
# Some other recommendations: | |
# 1. To persist Postgres data, assign it a volume host location. | |
# 2. Split the worker service to adhoc workers and scheduled queries workers. | |
version: '2' | |
services: | |
server: | |
image: redash/redash:latest | |
command: server | |
ports: | |
- "5000:5000" | |
environment: | |
PYTHONUNBUFFERED: 0 | |
REDASH_LOG_LEVEL: "DEBUG" | |
REDASH_REDIS_URL: "redis://192.168.86.25:6379/0" | |
REDASH_DATABASE_URL: 'postgresql://redash:PASSWORD@192.168.86.25:5432/redash' | |
REDASH_COOKIE_SECRET: veryverysecret | |
REDASH_WEB_WORKERS: 4 | |
restart: always | |
worker: | |
image: redash/redash:latest | |
command: scheduler | |
environment: | |
PYTHONUNBUFFERED: 0 | |
REDASH_LOG_LEVEL: "INFO" | |
REDASH_REDIS_URL: "redis://192.168.86.25:6379/0" | |
REDASH_DATABASE_URL: 'postgresql://redash:PASSWORD@192.168.86.25:5432/redash' | |
QUEUES: "queries,scheduled_queries,celery" | |
WORKERS_COUNT: 2 | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment