-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (75 loc) · 2.39 KB
/
docker-compose.yml
File metadata and controls
82 lines (75 loc) · 2.39 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
services:
# Nginx load balancer
nginx:
image: nginx:alpine
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./infrastructure/nginx.conf:/etc/nginx/nginx.conf:ro
- ./infrastructure/cert.pem:/etc/nginx/cert.pem:ro
- ./infrastructure/key.pem:/etc/nginx/key.pem:ro
depends_on:
- api-gateway
networks:
- validus-net
# ──────────────────────────────────────────────
# API Gateway (Replicated x2)
# ──────────────────────────────────────────────
api-gateway:
build:
context: ./api-gateway
restart: always
deploy:
replicas: 2
env_file:
- .env
volumes:
- shared_uploads:/shared/uploads
depends_on:
- ml-service
networks:
- validus-net
# ──────────────────────────────────────────────
# ML Service (Internal only)
# ──────────────────────────────────────────────
ml-service:
build:
context: ./ml_service
restart: always
volumes:
- shared_uploads:/shared/uploads
# Notice: NO ports mapped to host.
# Only accessible within the Docker network
networks:
- validus-net
# ──────────────────────────────────────────────
# Frontend UI (Gradio)
# ──────────────────────────────────────────────
frontend:
build:
context: ./frontend
restart: always
ports:
- "8050:8050"
env_file:
- .env
depends_on:
- api-gateway
networks:
- validus-net
# validus:
# build: .
# volumes:
# - ./images:/src/images
# environment:
# - REF_IMAGE=/src/images/original_signatures/original_8_2.png
# - QUERY_IMAGE=/src/images/forged_signatures/forgeries_8_2.png
# # cmd overrides the default command in Dockerfile if needed
# command: ["python", "main.py"]
volumes:
shared_uploads:
networks:
validus-net:
driver: bridge