-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
96 lines (94 loc) · 2.37 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
96 lines (94 loc) · 2.37 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
services:
nextjs:
build:
context: .
dockerfile: Dockerfile.dev
container_name: checkmate-nextjs
restart: unless-stopped
ports:
- "3002:3000"
env_file:
- .env.local
environment:
- NODE_ENV=development
- WATCHPACK_POLLING=true
# App URL for redirects (must use host-accessible URL with external port)
- NEXT_PUBLIC_APP_URL=http://localhost:3002
# Client-side URL (browser) - must use host-accessible URL
- NEXT_PUBLIC_POCKETBASE_URL=http://localhost:8090
# Server-side URL (container-to-container)
- POCKETBASE_URL=http://pocketbase:8090
# Disable signup when set to "true"
- NEXT_PUBLIC_SIGNUP_DISABLED=${NEXT_PUBLIC_SIGNUP_DISABLED:-false}
depends_on:
pocketbase:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:3000",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
develop:
watch:
# Sync source files for hot reload
- action: sync
path: ./src
target: /app/src
ignore:
- "**/*.test.ts"
- "**/*.test.tsx"
- "**/__tests__"
# Sync public assets
- action: sync
path: ./public
target: /app/public
# Rebuild on config changes
- action: rebuild
path: ./next.config.ts
- action: rebuild
path: ./tsconfig.json
- action: rebuild
path: ./postcss.config.mjs
# Reinstall deps on package changes
- action: rebuild
path: ./package.json
- action: rebuild
path: ./package-lock.json
pocketbase:
build:
context: ./docker/pocketbase
dockerfile: Dockerfile
container_name: checkmate-pocketbase
restart: unless-stopped
ports:
- "8090:8090"
volumes:
- pocketbase_data:/pb/pb_data
env_file:
- .env.local
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8090/api/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
pocketbase_data:
driver: local