-
Notifications
You must be signed in to change notification settings - Fork 398
Expand file tree
/
Copy pathcompose.yaml
More file actions
72 lines (72 loc) · 1.84 KB
/
Copy pathcompose.yaml
File metadata and controls
72 lines (72 loc) · 1.84 KB
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
70
71
72
x-redash-service: &redash-service
image: redash/redash:__TAG__
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
depends_on:
- server
scheduled_worker:
<<: *redash-service
command: worker
depends_on:
- server
environment:
QUEUES: "scheduled_queries,schemas"
WORKERS_COUNT: 1
adhoc_worker:
<<: *redash-service
command: worker
depends_on:
- server
environment:
QUEUES: "queries"
WORKERS_COUNT: 2
redis:
image: redis:7-alpine
restart: unless-stopped
postgres:
# pgautoupgrade handles automatic PostgreSQL major version upgrades.
#
# [NOTE FOR EXISTING USERS]
# If upgrading from PG17 or earlier, the volume mount path has changed.
# Backup your data first, then stop containers and update your volume from:
# /opt/redash/postgres-data:/var/lib/postgresql/data
# to:
# /opt/redash/postgres-data:/var/lib/postgresql
#
# pgautoupgrade will automatically migrate your data to the new directory structure.
#
# Details: https://github.com/pgautoupgrade/docker-pgautoupgrade#error-message-when-mounting-data-to-varlibpostgresqldata-on-postgres-v18
image: pgautoupgrade/pgautoupgrade:18-alpine
env_file: /opt/redash/env
volumes:
- /opt/redash/postgres-data:/var/lib/postgresql
restart: unless-stopped
nginx:
image: redash/nginx:latest
ports:
- "80:80"
depends_on:
- server
links:
- server:redash
restart: always
worker:
<<: *redash-service
command: worker
environment:
QUEUES: "periodic,emails,default"
WORKERS_COUNT: 1