-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
109 lines (109 loc) · 2.85 KB
/
compose.dev.yml
File metadata and controls
109 lines (109 loc) · 2.85 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# This configuration file is for the **development** setup.
# For a production example please refer to kubernetes or CloudRun setups
x-redash-service: &redash-service
build:
context: .
cache_from:
- "type=gha"
args:
skip_frontend_build: "${skip_frontend_build-}"
skip_dev_deps: "${skip_dev_deps-}"
skip_ds_deps: "${skip_ds_deps-}"
volumes:
- .:/app
env_file:
- .env
x-redash-environment: &redash-environment
REDASH_LOG_LEVEL: "INFO"
REDASH_REDIS_URL: "redis://redis:6379/0"
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
REDASH_RATELIMIT_ENABLED: "false"
REDASH_MAIL_DEFAULT_SENDER: noreply@datareporter.com
REDASH_AUTH_TYPE: "api_key"
REDASH_ENFORCE_CSRF: "true"
MAILCHIMP_SERVER: "us1"
CLIENT_TIMEOUT: 100000
REDASH_WORKER_NOTIFY_URL: "http://worker-server:5000/execute"
# OLLAMA_API_URL: "http://ollama:11434"
REDASH_SCHEMAS_REFRESH_TIMEOUT: 500
REDASH_VERSION_CHECK: "false"
WORKERS_COUNT: 10
QUEUES: 100
services:
server:
<<: *redash-service
command: dev_server
depends_on:
- postgres
- redis
ports:
- "5000:5000"
- "5678:5678"
environment:
<<: *redash-environment
# below is neccesary for debugging plywood
PLYWOOD_SERVER_URL: "http://host.docker.internal:3000"
volumes:
- .:/app
extra_hosts:
- "host.docker.internal:host-gateway"
scheduler:
<<: *redash-service
command: dev_scheduler
depends_on:
- server
environment:
<<: *redash-environment
worker-server:
<<: *redash-service
command: dev_worker_server
ports:
- "5001:5000"
- "5679:5678"
depends_on:
- server
environment:
<<: *redash-environment
PYTHONUNBUFFERED: 0
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379"
postgres:
image: pgautoupgrade/pgautoupgrade:latest
ports:
- "15432:5432"
- "5432:5432"
# The following turns the DB into less durable, but gains significant performance improvements for the tests run (x3
# improvement on my personal machine). We should consider moving this into a dedicated Docker Compose configuration for
# tests.
command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"
restart: unless-stopped
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
email:
image: maildev/maildev
ports:
- "1080:1080"
- "1025:1025"
restart: unless-stopped
plywood:
build:
context: ./plywood
dockerfile: Dockerfile
working_dir: /app
command: npm run watch-node
ports:
- "3000:3000"
- "9231:9229"
volumes:
- ./plywood:/app
- /app/node_modules
- /app/client/build
- /app/dist
environment:
- LOG_MODE=request_and_response
networks:
host-gateway:
external: true