Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (62 loc) · 1.59 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (62 loc) · 1.59 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
name: hackproof
x-api: &api
image: ghcr.io/astral-sh/uv:python3.13-bookworm-slim
working_dir: /repo/apps/api
volumes:
- ./:/repo
- api-venv:/repo/apps/api/.venv
environment:
UV_LINK_MODE: copy
DATABASE_URL: postgresql://hackproof:hackproof@db:5432/hackproof
HACKPROOF_GITHUB_TOKEN: ${HACKPROOF_GITHUB_TOKEN:-}
HACKPROOF_CORS_ORIGINS: '["http://localhost:5173"]'
depends_on:
db:
condition: service_healthy
services:
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: hackproof
POSTGRES_PASSWORD: hackproof
POSTGRES_DB: hackproof
ports:
- "5440:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 3s
timeout: 3s
retries: 20
api:
<<: *api
restart: unless-stopped
command: uv run fastapi run src/hackproof/main.py --host 0.0.0.0 --port 8000
ports:
- "8000:8000"
cli:
<<: *api
profiles: [tools]
entrypoint: ["uv", "run", "hackproof"]
web:
image: node:24-alpine
working_dir: /app
restart: unless-stopped
command: sh -c "corepack enable && pnpm install --frozen-lockfile && pnpm --filter web dev --host 0.0.0.0"
environment:
VITE_API_PROXY: http://api:8000
ports:
- "5173:5173"
volumes:
- ./:/app
- root-node-modules:/app/node_modules
- web-node-modules:/app/apps/web/node_modules
depends_on:
- api
volumes:
pgdata:
api-venv:
root-node-modules:
web-node-modules: