-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
50 lines (46 loc) · 1.11 KB
/
docker-compose.override.yml
File metadata and controls
50 lines (46 loc) · 1.11 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
# Development overrides — applied automatically by `docker compose up`
# For production only, use: docker compose -f docker-compose.yml up
services:
# In dev, skip the one-shot migrate service — the app runs db:push instead.
migrate:
profiles:
- production-only
# Hot-reload Next.js dev server with volume mounts.
app:
build:
context: .
target: deps
command: sh -c "pnpm db:push && pnpm dev"
volumes:
- .:/app
- /app/node_modules
- /app/.next
ports:
- "3000:3000"
- "9229:9229"
environment:
NODE_ENV: development
healthcheck:
start_period: 60s
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
# Hot-reload worker with volume mounts (shares the same node_modules mount).
worker:
build:
context: .
target: deps
command: npx tsx --watch src/lib/queue/worker.ts
volumes:
- .:/app
- /app/node_modules
environment:
NODE_ENV: development
postgres:
ports:
- "5432:5432"
redis:
ports:
- "6379:6379"