2017-01-18 14:55:36 +00:00
|
|
|
# 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.
|
2017-01-16 14:51:24 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
2017-01-18 13:20:46 +00:00
|
|
|
server:
|
2017-04-03 15:28:46 +00:00
|
|
|
image: redash/redash:latest
|
2017-01-18 14:55:36 +00:00
|
|
|
command: server
|
2017-01-16 14:51:24 +00:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
ports:
|
2017-01-18 12:26:43 +00:00
|
|
|
- "5000:5000"
|
2017-01-16 14:51:24 +00:00
|
|
|
environment:
|
|
|
|
PYTHONUNBUFFERED: 0
|
|
|
|
REDASH_LOG_LEVEL: "INFO"
|
|
|
|
REDASH_REDIS_URL: "redis://redis:6379/0"
|
|
|
|
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
|
2017-01-18 14:55:36 +00:00
|
|
|
REDASH_COOKIE_SECRET: veryverysecret
|
2017-01-16 14:51:24 +00:00
|
|
|
worker:
|
2017-04-03 15:28:46 +00:00
|
|
|
image: redash/redash:latest
|
2017-01-16 14:51:24 +00:00
|
|
|
command: scheduler
|
|
|
|
environment:
|
2017-01-18 12:26:43 +00:00
|
|
|
PYTHONUNBUFFERED: 0
|
2017-01-16 14:51:24 +00:00
|
|
|
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:
|
2017-04-03 15:28:46 +00:00
|
|
|
image: redis:3.0-alpine
|
2017-01-16 14:51:24 +00:00
|
|
|
postgres:
|
2017-04-03 15:28:46 +00:00
|
|
|
image: postgres:9.5.6-alpine
|
2017-01-18 14:55:36 +00:00
|
|
|
# volumes:
|
|
|
|
# - /opt/postgres-data:/var/lib/postgresql/data
|
|
|
|
nginx:
|
|
|
|
image: redash/nginx:latest
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
depends_on:
|
|
|
|
- server
|
2017-02-09 15:07:34 +00:00
|
|
|
links:
|
2017-02-06 20:53:46 +00:00
|
|
|
- server:redash
|