-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.29 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.29 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
services:
# Development: hot-reloading Vite server on host :31337 (same as install).
# The collector API is internal-only on the compose network; Vite proxies /v1.
dev:
image: node:22-alpine
working_dir: /app
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 4000"
ports:
- "127.0.0.1:31337:4000"
volumes:
- .:/app
- node_modules_cache:/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
depends_on:
- api
# Python collector. Receives Claude/Cursor hook events and stores them in a
# single SQLite DB in the user's home (~/.cot/cot.db on the host).
api:
build:
context: .
dockerfile: backend/Dockerfile
command:
- uvicorn
- app.main:app
- --host
- 0.0.0.0
- --port
- "31337"
- --reload
user: "${COT_DOCKER_UID:-1000}:${COT_DOCKER_GID:-1000}"
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
expose:
- "31337"
volumes:
- ./backend/app:/app/app
- ./bridge:/app/bridge
- ${HOME}/.cot:/data
environment:
- COT_DB_PATH=/data/cot.db
# Production: static dashboard served by nginx.
web:
profiles: ["prod"]
build: .
ports:
- "127.0.0.1:31337:80"
volumes:
node_modules_cache: