Skip to content

Instantly share code, notes, and snippets.

@kiarina
Created May 14, 2019 04:05
Show Gist options
  • Save kiarina/ec7d65194dca61b2716ef040d393f164 to your computer and use it in GitHub Desktop.
Save kiarina/ec7d65194dca61b2716ef040d393f164 to your computer and use it in GitHub Desktop.
version: '2'
x-redash-service: &redash-service
image: hoge/redash:develop
depends_on:
- postgres
- redis
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"
WORKERS_COUNT: 1
adhoc_worker:
<<: *redash-service
command: worker
environment:
QUEUES: "queries"
WORKERS_COUNT: 2
redis:
image: redis:3.0-alpine
restart: always
postgres:
image: postgres:9.5.6-alpine
env_file: /opt/redash/env
volumes:
- /opt/redash/postgres-data:/var/lib/postgresql/data
restart: always
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