forked from makeplane/plane
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.iw-dev.yml
More file actions
291 lines (274 loc) · 7.48 KB
/
Copy pathdocker-compose.iw-dev.yml
File metadata and controls
291 lines (274 loc) · 7.48 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
# InfraWatch — Local dev environment for Plane Plus (Orbstack)
#
# Access via Orbstack DNS:
# App: https://plane.orb.local
# Admin: https://plane.orb.local/god-mode/
# Spaces: https://plane.orb.local/spaces/
# API: https://plane.orb.local/api/
# Minio: http://minio.plane.orb.local:9090
# RabbitMQ: http://rabbitmq.plane.orb.local:15672
#
# First-time setup:
# 1. cp .env.iw-dev .env
# 2. cp apps/api/.env.iw-dev apps/api/.env
# 3. cp apps/web/.env.iw-dev apps/web/.env
# 4. docker compose -f docker-compose.iw-dev.yml up -d
#
# Rebuild after dependency changes:
# docker compose -f docker-compose.iw-dev.yml build --no-cache iw-api iw-web
services:
# ── Infrastructure ────────────────────────────────────────
iw-db:
image: postgres:15.7-alpine
container_name: iw-db
restart: unless-stopped
command: postgres -c 'max_connections=1000'
volumes:
- iw-pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: plane
POSTGRES_PASSWORD: plane
POSTGRES_DB: plane
PGDATA: /var/lib/postgresql/data
networks:
- iw-dev
iw-redis:
image: valkey/valkey:7.2.11-alpine
container_name: iw-redis
restart: unless-stopped
volumes:
- iw-redisdata:/data
networks:
- iw-dev
iw-mq:
image: rabbitmq:3.13.6-management-alpine
container_name: iw-mq
restart: unless-stopped
labels:
dev.orbstack.domains: rabbitmq.plane.orb.local
environment:
RABBITMQ_DEFAULT_USER: plane
RABBITMQ_DEFAULT_PASS: plane
RABBITMQ_DEFAULT_VHOST: plane
volumes:
- iw-rabbitmq:/var/lib/rabbitmq
networks:
- iw-dev
iw-minio:
image: minio/minio
container_name: iw-minio
restart: unless-stopped
labels:
dev.orbstack.domains: minio.plane.orb.local
command: server /export --console-address ":9090"
volumes:
- iw-uploads:/export
environment:
MINIO_ROOT_USER: access-key
MINIO_ROOT_PASSWORD: secret-key
# Allow MinIO to validate presigned URLs generated with the external proxy hostname
MINIO_SERVER_URL: https://plane.orb.local
MINIO_BROWSER_REDIRECT_URL: http://minio.plane.orb.local:9090
networks:
- iw-dev
iw-minio-setup:
image: minio/mc
container_name: iw-minio-setup
depends_on:
- iw-minio
restart: "no"
entrypoint: >
/bin/sh -c "
sleep 3 &&
mc alias set local http://iw-minio:9000 access-key secret-key &&
mc mb local/uploads -p || true &&
exit 0
"
networks:
- iw-dev
# ── Backend (pip deps baked in image, code volume-mounted) ─
iw-migrator:
build:
context: ./apps/api
dockerfile: Dockerfile.dev
container_name: iw-migrator
restart: "no"
volumes:
- ./apps/api:/code
command: ./bin/docker-entrypoint-migrator.sh --settings=plane.settings.local
env_file:
- ./apps/api/.env
depends_on:
- iw-db
- iw-redis
networks:
- iw-dev
iw-api:
build:
context: ./apps/api
dockerfile: Dockerfile.dev
container_name: iw-api
restart: unless-stopped
volumes:
- ./apps/api:/code
command: ./bin/docker-entrypoint-api-local.sh
env_file:
- ./apps/api/.env
depends_on:
- iw-db
- iw-redis
- iw-mq
- iw-migrator
networks:
- iw-dev
iw-worker:
build:
context: ./apps/api
dockerfile: Dockerfile.dev
container_name: iw-worker
restart: unless-stopped
volumes:
- ./apps/api:/code
command: ./bin/docker-entrypoint-worker.sh
env_file:
- ./apps/api/.env
depends_on:
- iw-api
- iw-db
- iw-redis
networks:
- iw-dev
iw-beat:
build:
context: ./apps/api
dockerfile: Dockerfile.dev
container_name: iw-beat
restart: unless-stopped
volumes:
- ./apps/api:/code
command: ./bin/docker-entrypoint-beat.sh
env_file:
- ./apps/api/.env
depends_on:
- iw-api
- iw-db
- iw-redis
networks:
- iw-dev
# ── Frontend ───────────────────────────────────────────────
# Installer runs once to populate shared node_modules volume
iw-node-installer:
image: node:22-alpine
container_name: iw-node-installer
restart: "no"
working_dir: /app
volumes:
- .:/app
- iw-node-modules:/app/node_modules
command: sh -c "corepack enable pnpm && pnpm install --frozen-lockfile && touch /app/node_modules/.iw-ready"
networks:
- iw-dev
iw-web:
image: node:22-alpine
container_name: iw-web
restart: unless-stopped
working_dir: /app
volumes:
- .:/app
- iw-node-modules:/app/node_modules
env_file:
- .env.iw-dev
environment:
# VITE vars must be in container env — Vite bakes them in at dev-server startup
VITE_LIVE_BASE_URL: ${VITE_LIVE_BASE_URL:-}
VITE_LIVE_BASE_PATH: ${VITE_LIVE_BASE_PATH:-/live}
command: sh -c "until [ -f /app/node_modules/.iw-ready ]; do sleep 2; done && corepack enable pnpm && pnpm dev --filter=web"
depends_on:
- iw-api
- iw-node-installer
networks:
- iw-dev
iw-admin:
image: node:22-alpine
container_name: iw-admin
restart: unless-stopped
working_dir: /app
volumes:
- .:/app
- iw-node-modules:/app/node_modules
environment:
VITE_ADMIN_BASE_PATH: "/god-mode"
command: sh -c "until [ -f /app/node_modules/.iw-ready ]; do sleep 2; done && corepack enable pnpm && pnpm dev --filter=admin"
depends_on:
- iw-api
- iw-node-installer
networks:
- iw-dev
iw-space:
image: node:22-alpine
container_name: iw-space
restart: unless-stopped
working_dir: /app
volumes:
- .:/app
- iw-node-modules:/app/node_modules
environment:
VITE_SPACE_BASE_PATH: "/spaces"
command: sh -c "until [ -f /app/node_modules/.iw-ready ]; do sleep 2; done && corepack enable pnpm && pnpm dev --filter=space"
depends_on:
- iw-api
- iw-node-installer
networks:
- iw-dev
iw-live:
image: node:22-alpine
container_name: iw-live
restart: unless-stopped
working_dir: /app
volumes:
- .:/app
- iw-node-modules:/app/node_modules
env_file:
- .env.iw-dev
environment:
TURBO_TELEMETRY_DISABLED: "1"
PORT: "3003"
LIVE_SERVER_SECRET_KEY: ${LIVE_SERVER_SECRET_KEY:-secret-key}
REDIS_URL: redis://iw-redis:6379/
API_BASE_URL: http://iw-api:8000
command: sh -c "until [ -f /app/node_modules/.iw-ready ]; do sleep 2; done && corepack enable pnpm && pnpm dev --filter=live"
depends_on:
- iw-api
- iw-node-installer
networks:
- iw-dev
# ── Proxy (Caddy — unified access point) ──────────────────
iw-proxy:
build:
context: ./apps/proxy
dockerfile: Dockerfile.iw-dev
container_name: iw-proxy
restart: unless-stopped
labels:
dev.orbstack.domains: plane.orb.local
environment:
FILE_SIZE_LIMIT: "5242880"
BUCKET_NAME: uploads
SITE_ADDRESS: ":80"
TRUSTED_PROXIES: "0.0.0.0/0"
depends_on:
- iw-web
- iw-api
- iw-space
- iw-admin
networks:
- iw-dev
volumes:
iw-pgdata:
iw-redisdata:
iw-uploads:
iw-rabbitmq:
iw-node-modules:
networks:
iw-dev:
driver: bridge