Skip to content

Instantly share code, notes, and snippets.

@carlosescura
Last active June 13, 2019 13:14
Show Gist options
  • Save carlosescura/944e74f10bba1cd4d43f302111a56594 to your computer and use it in GitHub Desktop.
Save carlosescura/944e74f10bba1cd4d43f302111a56594 to your computer and use it in GitHub Desktop.
version: '2'
x-redash-service: &redash-service
# Get the latest image available from https://hub.docker.com/r/redash/redash/tags
image: redash/redash:7.0.0.b18042
# Load ENV vars as file
env_file: /opt/redash/env
restart: always
services:
server:
<<: *redash-service
command: server
ports:
- '5000:5000'
environment:
REDASH_WEB_WORKERS: 4
scheduler:
<<: *redash-service
command: scheduler
environment:
QUEUES: 'celery'
WORKERS_COUNT: 1
scheduled_worker:
<<: *redash-service
command: worker
environment:
QUEUES: 'scheduled_queries,schemas'
WORKERS_COUNT: 1
adhoc_worker:
<<: *redash-service
command: worker
environment:
QUEUES: 'queries'
WORKERS_COUNT: 2
nginx:
image: redash/nginx:latest
ports:
- '80:80'
depends_on:
- server
links:
- server:redash
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment