forked from getredash/redash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.staging.yml.sample
44 lines (44 loc) · 1.31 KB
/
docker-compose.staging.yml.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This configuration file is for **development** setup. For production, refer to
# docker-compose.production.yml.
version: '3'
services:
server:
build: .
command: server
depends_on:
- redis
ports:
- "5000:5000"
volumes:
- ".:/app"
environment:
PYTHONUNBUFFERED: 0
REDASH_LOG_LEVEL: "INFO"
REDASH_ALLOW_SCRIPTS_IN_USER_INPUT: "true"
REDASH_ALLOW_PARAMETERS_IN_EMBEDS: "true"
REDASH_THROTTLE_LOGIN_PATTERN: "500/minute"
REDASH_ADDITIONAL_QUERY_RUNNERS: "redash.query_runner.python"
REDASH_REDIS_URL: "redis://redis:6379/0"
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
worker:
build: .
command: scheduler
volumes:
- ".:/app"
depends_on:
- server
environment:
PYTHONUNBUFFERED: 0
REDASH_LOG_LEVEL: "INFO"
REDASH_ALLOW_SCRIPTS_IN_USER_INPUT: "true"
REDASH_ALLOW_PARAMETERS_IN_EMBEDS: "true"
REDASH_THROTTLE_LOGIN_PATTERN: "500/minute"
REDASH_ADDITIONAL_QUERY_RUNNERS: "redash.query_runner.python"
REDASH_REDIS_URL: "redis://redis:6379/0"
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
QUEUES: "queries,scheduled_queries,celery"
WORKERS_COUNT: 2
restart: always
redis:
image: redis:3-alpine
restart: unless-stopped