-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathprocess-compose.yml
More file actions
51 lines (47 loc) · 1.73 KB
/
Copy pathprocess-compose.yml
File metadata and controls
51 lines (47 loc) · 1.73 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
version: "0.5"
is_strict: true
shell:
shell_command: "sh"
# Not a login shell: on macOS a login sh runs /etc/profile, which calls
# path_helper and moves the system directories ahead of the user's own
# PATH. The daemon started here hands its environment to every agent it
# launches, so keep the PATH process-compose was started with.
shell_argument: "-c"
processes:
git-fetch:
description: "Refresh remote refs every 15 minutes while on main"
namespace: dev
log_location: "tmp/logs/git-fetch-process-compose.log"
command: |
while true; do
if [ "$(git branch --show-current)" = "main" ]; then
git fetch || echo "git fetch failed; retrying in 15 minutes" >&2
fi
sleep 900
done
backend:
description: "Go backend with Air live reload on 127.0.0.1:8091"
namespace: dev
log_location: "tmp/logs/backend-process-compose.log"
command: "make frontend && sh ./scripts/dev-stack-backend.sh"
# process-compose kills the backend when readiness exhausts its failures.
# The first start after a pull runs the frontend build and a cold Go build
# before the server listens, which can take several minutes.
readiness_probe:
http_get:
host: 127.0.0.1
scheme: http
path: /healthz
port: 8091
initial_delay_seconds: 5
period_seconds: 5
timeout_seconds: 3
success_threshold: 1
failure_threshold: 120
frontend:
description: "Vite frontend dev server on 127.0.0.1:5174"
namespace: dev
log_location: "tmp/logs/frontend-process-compose.log"
environment:
- KENN_FORGE_API_ERROR_DEBUG=1
command: "bun install ${BUN_INSTALL_FLAGS:-} && cd frontend && exec vp dev -- ${FRONTEND_ARGS:-}"