-
Notifications
You must be signed in to change notification settings - Fork 243
/
docker-compose-redash.yaml
69 lines (61 loc) · 1.36 KB
/
docker-compose-redash.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3'
x-redash-service:
&redash-service
image: redash/redash:8.0.0.b32245
depends_on:
- postgres
- redis
env_file: ./.env
restart: always
services:
redis:
container_name: redash-redis
image: redis:5.0-alpine
restart: always
postgres:
container_name: redash-db
image: postgres:9.6-alpine
env_file: ./.env
volumes:
- redash-postgres-data:/var/lib/postgresql/data
restart: always
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- PGPORT=5433 # The default port (5432) is reserved for the db of anyway
ports:
- "5433:5433"
expose:
- "5433"
redash-server:
<<: *redash-service
container_name: redash-server
command: server
environment:
REDASH_WEB_WORKERS: 4
ports:
- "5001:5000"
expose:
- "5001"
scheduler:
<<: *redash-service
container_name: redash-scheduler
command: scheduler
environment:
QUEUES: "celery"
WORKERS_COUNT: 1
scheduled_worker:
<<: *redash-service
container_name: redash-scheduled-worker
command: worker
environment:
QUEUES: "scheduled_queries,schemas"
WORKERS_COUNT: 1
adhoc_worker:
<<: *redash-service
container_name: redash-adhoc-worker
command: worker
environment:
QUEUES: "queries"
WORKERS_COUNT: 2
volumes:
redash-postgres-data: