-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
167 lines (153 loc) · 4.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
167 lines (153 loc) · 4.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
services:
kafka:
image: apache/kafka:latest
container_name: deployguard_kafka
environment:
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_NODE_ID: "1"
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CONTROLLER_QUORUM_VOTERS: "1@kafka:9093"
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093,EXTERNAL://0.0.0.0:9094
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_NUM_PARTITIONS: "1"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: "1"
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
ports:
- "9092:9092"
- "9093:9093"
- "9094:9094"
healthcheck:
test:
[
"CMD-SHELL",
"/opt/kafka/bin/kafka-topics.sh --bootstrap-server localhost:9092 --list || exit 1",
]
interval: 30s
timeout: 20s
retries: 10
start_period: 60s
redis:
image: redis:7-alpine
container_name: deployguard_redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep -q PONG"]
interval: 10s
timeout: 20s
retries: 5
qdrant:
image: qdrant/qdrant:latest
container_name: deployguard_qdrant
ports:
- "6333:6333"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:6333/health || exit 1"]
interval: 10s
timeout: 10s
retries: 5
frontend:
build:
context: ./frontend
image: shriza1991/deployguard-frontend:latest
container_name: deployguard_frontend
ports:
- "3000:80"
depends_on:
- gateway
- aggregator
- kafka
- redis
gateway:
build:
context: ./gateway
image: shriza1991/deployguard-gateway:latest
container_name: deployguard_gateway
ports:
- "8000:8000"
depends_on:
kafka:
condition: service_healthy
environment:
KAFKA_BROKER: kafka:9092
agent-code-risk:
build:
context: ./agent-code-risk
image: shriza1991/deployguard-agent-code-risk:latest
container_name: deployguard_agent_code_risk
depends_on:
kafka:
condition: service_healthy
environment:
KAFKA_BROKER: kafka:9092
LLM_PROVIDER: gemini
GEMINI_API_KEY: ${GEMINI_API_KEY}
GEMINI_MODEL: ${GEMINI_MODEL:-gemini-2.5-flash}
agent-infra-risk:
build:
context: ./agent-infra-risk
image: shriza1991/deployguard-agent-infra-risk:latest
container_name: deployguard_agent_infra_risk
depends_on:
kafka:
condition: service_healthy
environment:
KAFKA_BROKER: kafka:9092
LLM_PROVIDER: gemini
GEMINI_API_KEY: ${GEMINI_API_KEY}
GEMINI_MODEL: ${GEMINI_MODEL:-gemini-2.5-flash}
agent-incident-history:
build:
context: ./agent-incident-history
image: shriza1991/deployguard-agent-incident-history:latest
container_name: deployguard_agent_incident_history
depends_on:
kafka:
condition: service_healthy
environment:
KAFKA_BROKER: kafka:9092
QDRANT_URL: http://qdrant:6333
aggregator:
build:
context: ./aggregator
image: shriza1991/deployguard-aggregator:latest
volumes:
- ./agent-incident-history/incident_seeding:/app/incident_seeding
container_name: deployguard_aggregator
ports:
- "8002:8002"
depends_on:
kafka:
condition: service_healthy
redis:
condition: service_healthy
environment:
KAFKA_BROKER: kafka:9092
REDIS_URL: redis://redis:6379/0
repository-context-service:
image: shriza1991/deployguard-repository-context:latest
build:
context: ./repository-context-service
container_name: deployguard_repository_context_service
ports:
- "8003:8003"
depends_on:
redis:
condition: service_healthy
qdrant:
condition: service_started
environment:
REDIS_URL: redis://redis:6379/0
QDRANT_URL: http://qdrant:6333
healthcheck:
test:
[
"CMD-SHELL",
'python -c "import urllib.request, json; res = json.loads(urllib.request.urlopen(''http://localhost:8003/readiness'').read().decode()); exit(0 if res.get(''ready'') else 1)" || exit 1',
]
interval: 10s
timeout: 10s
retries: 15
start_period: 20s