-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (59 loc) · 1.37 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (59 loc) · 1.37 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
version: '3.8'
services:
# General Validation Engine
general:
build:
context: ./general
dockerfile: Dockerfile
ports:
- "8083:8083"
environment:
- PORT=8083
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=${DB_USER:-asguard}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=general_engine
- JWT_SECRET=${JWT_SECRET}
- RATE_LIMIT_REQUESTS_PER_SECOND=10
- RATE_LIMIT_BURST=20
depends_on:
- postgres
networks:
- asguard-network
restart: unless-stopped
# PostgreSQL for General Engine
postgres:
image: postgres:16-alpine
environment:
- POSTGRES_USER=${DB_USER:-asguard}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=general_engine
volumes:
- postgres_data:/var/lib/postgresql/data
- ./general/schema.sql:/docker-entrypoint-initdb.d/001_schema.sql
networks:
- asguard-network
restart: unless-stopped
# Face Verification Service
face:
build:
context: ./asguard-face
dockerfile: Dockerfile
ports:
- "8082:8082"
environment:
- PORT=8082
- MODELS_PATH=/app/models
- API_KEYS=${FACE_API_KEYS}
volumes:
- face_models:/app/models:ro
networks:
- asguard-network
restart: unless-stopped
volumes:
postgres_data:
face_models:
networks:
asguard-network:
driver: bridge