-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1000 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (41 loc) · 1000 Bytes
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
services:
frontend:
build:
context: ./frontend
ports:
- "5173:5173"
environment:
- VITE_API_BASE_URL=http://localhost:8000/api
depends_on:
- backend
backend:
build:
context: ./backend
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/attendance
- FAISS_INDEX_PATH=/data/faiss_indexes
- CORS_ORIGINS=http://localhost:5173,http://localhost:3000
# R2 credentials (optional for local dev)
# - R2_ACCOUNT_ID=
# - R2_ACCESS_KEY=
# - R2_SECRET_KEY=
# - R2_BUCKET_NAME=attendance-faces
volumes:
- faiss_data:/data
depends_on:
- postgres
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=attendance
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data:
faiss_data: