-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (54 loc) · 1.4 KB
/
docker-compose.yaml
File metadata and controls
57 lines (54 loc) · 1.4 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
services:
# PostgreSQL with pgvector extension for vector similarity search
postgres:
image: pgvector/pgvector:pg16
container_name: face-auth-postgres
environment:
POSTGRES_USER: faceauth
POSTGRES_PASSWORD: faceauth_secret
POSTGRES_DB: face_auth
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U faceauth -d face_auth" ]
interval: 5s
timeout: 5s
retries: 5
restart: always
backend:
build: ./backend
container_name: face-auth-backend
ports:
- "8001:8000"
environment:
# PostgreSQL connection
DATABASE_URL: postgresql://faceauth:faceauth_secret@postgres:5432/face_auth
# Keep SQLite path for migration script
SQLITE_PATH: /app/face_auth.db
volumes:
- ./backend:/app
- ./face_auth.db:/app/face_auth.db
- ./models:/app/models
- ./config:/app/config
- ./database:/app/database
- ./security.log:/app/security.log
- ./unauthorized_attempts:/app/unauthorized_attempts
depends_on:
postgres:
condition: service_healthy
restart: always
frontend:
build: ./frontend
container_name: face-auth-frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
restart: always
volumes:
pgdata: