-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 1.23 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
# Local two-container shape. Mirrors the future k8s deploy: caddy fronts the
# static React bundle on :8080, the Rust binary serves JSON + MCP on :7777.
# The browser hits caddy (or the Vite dev server during dev) and lets it
# proxy / route to the API.
#
# For day-to-day iteration prefer `make watch-all` (cargo-watch on the Rust
# side plus Vite dev server on the web side). docker compose is for the
# "ship-shape preview" path and as the local mirror of prod.
services:
api:
build:
context: .
dockerfile: Dockerfile
image: repo-recall-api:dev
ports:
- "7777:7777"
environment:
REPO_RECALL_HOST: "0.0.0.0"
REPO_RECALL_PORT: "7777"
REPO_RECALL_CWD: "/work"
volumes:
- ${HOME}/projects/coilysiren:/work:ro
- ${HOME}/.claude:/home/repo-recall/.claude:ro
web:
build:
context: .
dockerfile: Dockerfile.web
image: repo-recall-web:dev
ports:
- "8080:8080"
environment:
PORT: "8080"
# Compose: API is a sibling service, reachable by service name on the
# default bridge. k8s shares a Pod and talks over localhost (the
# Caddyfile default).
API_UPSTREAM: "api:7777"
depends_on:
api:
condition: service_started