mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 01:48:54 +00:00
d69c9409dd
Allow $REDASH_WEB_WORKERS to be set in the environment to change the number of Gunicorn workers that are started (currently hardcoded to four). If not set, the default is four, so this will not affect existing users at all. Documentated by example in docker-compose example manifests.
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
# 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
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
ports:
|
|
- "5000:5000"
|
|
environment:
|
|
PYTHONUNBUFFERED: 0
|
|
REDASH_LOG_LEVEL: "INFO"
|
|
REDASH_REDIS_URL: "redis://redis:6379/0"
|
|
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
|
|
REDASH_COOKIE_SECRET: veryverysecret
|
|
REDASH_WEB_WORKERS: 4
|
|
worker:
|
|
image: redash/redash:latest
|
|
command: scheduler
|
|
environment:
|
|
PYTHONUNBUFFERED: 0
|
|
REDASH_LOG_LEVEL: "INFO"
|
|
REDASH_REDIS_URL: "redis://redis:6379/0"
|
|
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
|
|
QUEUES: "queries,scheduled_queries,celery"
|
|
WORKERS_COUNT: 2
|
|
redis:
|
|
image: redis:3.0-alpine
|
|
postgres:
|
|
image: postgres:9.5.6-alpine
|
|
# volumes:
|
|
# - /opt/postgres-data:/var/lib/postgresql/data
|
|
nginx:
|
|
image: redash/nginx:latest
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- server
|
|
links:
|
|
- server:redash
|