-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yaml
More file actions
75 lines (71 loc) · 1.99 KB
/
Copy pathcompose.yaml
File metadata and controls
75 lines (71 loc) · 1.99 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
name: cheatcode-local
x-app-build: &app-build
context: .
dockerfile: infra/containers/dev/Dockerfile
x-app-image: &app-image
image: cheatcode-local-dev
services:
app:
<<: *app-image
build: *app-build
command:
- bash
- -euc
- |
pnpm turbo build --filter=./packages/*
exec pnpm dev:services -- --bind 0.0.0.0 --skip-initial-build
develop:
watch:
- action: sync
path: .
target: /workspace
ignore:
- .env
- .env.*
- .git/
- .next/
- .turbo/
- .vercel/
- .wrangler/
- package.json
- packages/db/drizzle/
- pnpm-lock.yaml
- pnpm-workspace.yaml
- "**/.next/"
- "**/.turbo/"
- "**/.wrangler/"
- "**/dist/"
- "**/node_modules/"
- node_modules/
- action: sync+restart
path: packages/db/drizzle
target: /workspace/packages/db/drizzle
- action: rebuild
path: package.json
- action: rebuild
path: pnpm-lock.yaml
- action: rebuild
path: pnpm-workspace.yaml
healthcheck:
test:
- CMD
- node
- -e
- Promise.all([fetch('http://127.0.0.1:3001/cheatcode-symbol.png'),fetch('http://127.0.0.1:8787/health/live')]).then(async([web,gateway])=>{if(!web.ok||!web.headers.get('content-type')?.startsWith('image/png')||!gateway.ok||(await gateway.json()).ok!==true)process.exit(1)}).catch(()=>process.exit(1))
interval: 5s
timeout: 5s
retries: 24
start_period: 30s
init: true
ports:
- "127.0.0.1:3001:3001"
- "127.0.0.1:8787:8787"
- "127.0.0.1:9239:9239"
stop_grace_period: 20s
volumes:
- ./.env.local:/workspace/.env.local:ro
- app-next:/workspace/apps/web/.next
- app-wrangler:/workspace/apps/gateway-worker/.wrangler
volumes:
app-next:
app-wrangler: