forked from beenuar/AiSOC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
652 lines (620 loc) · 19.6 KB
/
Copy pathdocker-compose.yml
File metadata and controls
652 lines (620 loc) · 19.6 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
###############################################################################
# AiSOC - AI Security Operations Center
# Docker Compose - Full Development Stack
# AiSOC — open-source under MIT License
#
# SECURITY NOTE
# -------------
# All host port publishings below are bound to 127.0.0.1 so a default
# `docker compose up` does NOT expose Postgres / Kafka / OpenSearch /
# Neo4j / Redis (with their development passwords) to the network the
# host is attached to. This is intentional: the same passwords ship in
# every clone of this repo. If you need to reach these from another
# machine, write a docker-compose.override.yml that changes the host
# binding for the specific service you're exposing — and rotate the
# password while you're there.
###############################################################################
networks:
aisoc:
driver: bridge
volumes:
postgres_data:
redis_data:
kafka_data:
clickhouse_data:
opensearch_data:
qdrant_data:
neo4j_data:
neo4j_logs:
services:
# ─── Infrastructure ─────────────────────────────────────────────────────────
postgres:
image: postgres:16-alpine
container_name: aisoc-postgres
environment:
POSTGRES_DB: aisoc
POSTGRES_USER: aisoc
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-aisoc_dev_secret}
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./services/api/migrations:/docker-entrypoint-initdb.d:ro
networks:
- aisoc
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aisoc"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: aisoc-redis
command: redis-server --appendonly yes --requirepass redis_dev_secret
ports:
- "127.0.0.1:6379:6379"
volumes:
- redis_data:/data
networks:
- aisoc
healthcheck:
test: ["CMD", "redis-cli", "-a", "redis_dev_secret", "ping"]
interval: 10s
timeout: 5s
retries: 5
zookeeper:
image: confluentinc/cp-zookeeper:7.5.0
container_name: aisoc-zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
networks:
- aisoc
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "2181"]
interval: 10s
timeout: 5s
retries: 5
kafka:
image: confluentinc/cp-kafka:7.5.0
container_name: aisoc-kafka
depends_on:
zookeeper:
condition: service_healthy
ports:
- "127.0.0.1:9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_LOG_RETENTION_HOURS: 168
networks:
- aisoc
volumes:
- kafka_data:/var/lib/kafka/data
# Memory caps surface OOMKiller events as a clear container exit instead of
# silent broker rebalances. Tune up if you raise KAFKA_HEAP_OPTS.
mem_limit: 1536m
mem_reservation: 1g
healthcheck:
test: ["CMD", "kafka-broker-api-versions", "--bootstrap-server", "localhost:9092"]
interval: 15s
timeout: 10s
retries: 5
kafka-ui:
image: provectuslabs/kafka-ui:latest
container_name: aisoc-kafka-ui
depends_on:
kafka:
condition: service_healthy
ports:
- "127.0.0.1:8090:8080"
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:29092
networks:
- aisoc
clickhouse:
image: clickhouse/clickhouse-server:23.8
container_name: aisoc-clickhouse
ports:
- "127.0.0.1:8123:8123"
- "127.0.0.1:9000:9000"
volumes:
- clickhouse_data:/var/lib/clickhouse
- ./services/api/clickhouse:/docker-entrypoint-initdb.d:ro
environment:
CLICKHOUSE_DB: aisoc
CLICKHOUSE_USER: aisoc
CLICKHOUSE_PASSWORD: clickhouse_dev_secret
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
networks:
- aisoc
ulimits:
nofile:
soft: 262144
hard: 262144
mem_limit: 1g
mem_reservation: 768m
opensearch:
image: opensearchproject/opensearch:2.11.0
container_name: aisoc-opensearch
environment:
- cluster.name=aisoc-cluster
- node.name=aisoc-node-1
- discovery.type=single-node
- bootstrap.memory_lock=true
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
- DISABLE_INSTALL_DEMO_CONFIG=true
- DISABLE_SECURITY_PLUGIN=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- opensearch_data:/usr/share/opensearch/data
ports:
- "127.0.0.1:9200:9200"
networks:
- aisoc
mem_limit: 1g
mem_reservation: 768m
qdrant:
image: qdrant/qdrant:v1.7.0
container_name: aisoc-qdrant
ports:
- "127.0.0.1:6333:6333"
volumes:
- qdrant_data:/qdrant/storage
networks:
- aisoc
neo4j:
image: neo4j:5.15-community
container_name: aisoc-neo4j
ports:
- "127.0.0.1:7474:7474" # HTTP browser
- "127.0.0.1:7687:7687" # Bolt
environment:
NEO4J_AUTH: neo4j/neo4j_dev_secret
NEO4J_PLUGINS: '["apoc"]'
NEO4J_dbms_security_procedures_unrestricted: apoc.*
NEO4J_dbms_memory_heap_initial__size: 256m
NEO4J_dbms_memory_heap_max__size: 512m
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
networks:
- aisoc
mem_limit: 1g
mem_reservation: 768m
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:7474 || exit 1"]
interval: 15s
timeout: 10s
retries: 10
# ─── Application Services ────────────────────────────────────────────────────
api:
build:
context: ./services/api
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-core-api:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-api
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
kafka:
condition: service_healthy
ports:
- "127.0.0.1:8000:8000"
environment:
DATABASE_URL: postgresql+asyncpg://aisoc:${POSTGRES_PASSWORD:-aisoc_dev_secret}@postgres:5432/aisoc
REDIS_URL: redis://:redis_dev_secret@redis:6379/0
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
CLICKHOUSE_URL: http://aisoc:clickhouse_dev_secret@clickhouse:8123/aisoc
OPENSEARCH_URL: http://opensearch:9200
QDRANT_URL: http://qdrant:6333
NEO4J_URI: bolt://neo4j:7687
NEO4J_USER: neo4j
NEO4J_PASSWORD: neo4j_dev_secret
SECRET_KEY: dev_secret_key_change_in_production
ENVIRONMENT: development
LOG_LEVEL: info
networks:
- aisoc
restart: unless-stopped
ingest-worker:
build:
context: ./services/ingest
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-ingest:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-ingest
depends_on:
kafka:
condition: service_healthy
ports:
- "127.0.0.1:8081:8080"
- "127.0.0.1:9090:9090"
environment:
ENV: development
HTTP_PORT: 8080
METRICS_PORT: 9090
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
REDIS_URL: redis://:redis_dev_secret@redis:6379/1
LOG_LEVEL: info
JWT_SECRET: dev_secret_key_change_in_production
ATTCK_DATA_PATH: /app/data/enterprise-attack.json
networks:
- aisoc
restart: unless-stopped
enrichment:
build:
context: ./services/enrichment
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-enrichment:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-enrichment
depends_on:
redis:
condition: service_healthy
kafka:
condition: service_healthy
ports:
- "127.0.0.1:8080:8082"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
REDIS_URL: redis://:redis_dev_secret@redis:6379/2
VIRUSTOTAL_API_KEY: ${VIRUSTOTAL_API_KEY:-}
ABUSEIPDB_API_KEY: ${ABUSEIPDB_API_KEY:-}
GREYNOISE_API_KEY: ${GREYNOISE_API_KEY:-}
SHODAN_API_KEY: ${SHODAN_API_KEY:-}
networks:
- aisoc
restart: unless-stopped
fusion:
build:
context: ./services/fusion
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-fusion:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-fusion
depends_on:
redis:
condition: service_healthy
kafka:
condition: service_healthy
ports:
- "127.0.0.1:8003:8003"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
REDIS_URL: redis://:redis_dev_secret@redis:6379/3
DATABASE_URL: postgresql+asyncpg://aisoc:${POSTGRES_PASSWORD:-aisoc_dev_secret}@postgres:5432/aisoc
networks:
- aisoc
restart: unless-stopped
agents:
build:
context: ./services/agents
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-agents:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-agents
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "127.0.0.1:8001:8084"
environment:
DATABASE_URL: postgresql+asyncpg://aisoc:${POSTGRES_PASSWORD:-aisoc_dev_secret}@postgres:5432/aisoc
REDIS_URL: redis://:redis_dev_secret@redis:6379/4
CORE_API_URL: http://api:8000
QDRANT_URL: http://qdrant:6333
NEO4J_URI: bolt://neo4j:7687
NEO4J_USER: neo4j
NEO4J_PASSWORD: neo4j_dev_secret
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
OPENAI_MODEL: ${OPENAI_MODEL:-gpt-4o-mini}
ATTCK_DATA_PATH: /app/data/enterprise-attack.json
networks:
- aisoc
restart: unless-stopped
osquery-tls:
build:
context: ./services/osquery-tls
dockerfile: Dockerfile
# Not in publish-images.yml matrix yet — pull falls back to local build.
image: ghcr.io/beenuar/aisoc-osquery-tls:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-osquery-tls
depends_on:
postgres:
condition: service_healthy
# Host port 8007 was previously colliding with the `ueba` service's
# 127.0.0.1:8007 binding; remapped to 8091 here. UEBA still owns 8007.
ports:
- "127.0.0.1:8091:8007"
profiles:
- osquery
environment:
DATABASE_URL: postgresql+asyncpg://aisoc:${POSTGRES_PASSWORD:-aisoc_dev_secret}@postgres:5432/aisoc
AISOC_OSQUERY_TLS_ENROLL_SECRET: ${AISOC_OSQUERY_TLS_ENROLL_SECRET:-change-me-in-production}
# The ingest service is registered as `ingest-worker` in this compose
# file; the previous `http://ingest:8080` would not resolve via DNS.
AISOC_INGEST_BASE_URL: http://ingest-worker:8080
networks:
- aisoc
restart: unless-stopped
actions:
build:
context: ./services/actions
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-actions:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-actions
depends_on:
redis:
condition: service_healthy
kafka:
condition: service_healthy
ports:
- "127.0.0.1:8002:8085"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
REDIS_URL: redis://:redis_dev_secret@redis:6379/5
DATABASE_URL: postgresql+asyncpg://aisoc:${POSTGRES_PASSWORD:-aisoc_dev_secret}@postgres:5432/aisoc
CORE_API_URL: http://api:8000
networks:
- aisoc
restart: unless-stopped
connectors:
build:
context: ./services/connectors
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-connectors:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-connectors
depends_on:
kafka:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "127.0.0.1:8088:8003"
profiles:
- connectors
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
REDIS_URL: redis://:redis_dev_secret@redis:6379/6
DATABASE_URL: postgresql+asyncpg://aisoc:${POSTGRES_PASSWORD:-aisoc_dev_secret}@postgres:5432/aisoc
CORE_API_URL: http://api:8000
CROWDSTRIKE_CLIENT_ID: ${CROWDSTRIKE_CLIENT_ID:-}
CROWDSTRIKE_CLIENT_SECRET: ${CROWDSTRIKE_CLIENT_SECRET:-}
AWS_REGION: ${AWS_REGION:-us-east-1}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-}
networks:
- aisoc
restart: unless-stopped
threatintel:
build:
context: ./services/threatintel
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-threatintel:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-threatintel
depends_on:
redis:
condition: service_healthy
kafka:
condition: service_healthy
ports:
- "127.0.0.1:8005:8005"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
REDIS_URL: redis://:redis_dev_secret@redis:6379/7
OPENSEARCH_URL: http://opensearch:9200
QDRANT_URL: http://qdrant:6333
NEO4J_URI: bolt://neo4j:7687
NEO4J_USER: neo4j
NEO4J_PASSWORD: neo4j_dev_secret
MISP_URL: ${MISP_URL:-}
MISP_API_KEY: ${MISP_API_KEY:-}
OTX_API_KEY: ${OTX_API_KEY:-}
TAXII_URL: ${TAXII_URL:-}
TAXII_USERNAME: ${TAXII_USERNAME:-}
TAXII_PASSWORD: ${TAXII_PASSWORD:-}
networks:
- aisoc
restart: unless-stopped
ueba:
build:
context: ./services/ueba
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-ueba:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-ueba
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
kafka:
condition: service_healthy
ports:
- "127.0.0.1:8007:8004"
environment:
DATABASE_URL: postgresql+asyncpg://aisoc:${POSTGRES_PASSWORD:-aisoc_dev_secret}@postgres:5432/aisoc
REDIS_URL: redis://:redis_dev_secret@redis:6379/8
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
CLICKHOUSE_URL: http://aisoc:clickhouse_dev_secret@clickhouse:8123/aisoc
CORE_API_URL: http://api:8000
networks:
- aisoc
restart: unless-stopped
honeytokens:
# Gated behind the `extras` profile: image isn't published to GHCR yet, so
# `aisoc serve` skips it by default. Opt in with `--profile extras` and the
# local Dockerfile build will run.
profiles: ["extras"]
build:
context: ./services/honeytokens
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-honeytokens:${AISOC_VERSION:-latest}
pull_policy: build
container_name: aisoc-honeytokens
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
kafka:
condition: service_healthy
ports:
- "127.0.0.1:8008:8005"
environment:
DATABASE_URL: postgresql+asyncpg://aisoc:${POSTGRES_PASSWORD:-aisoc_dev_secret}@postgres:5432/aisoc
REDIS_URL: redis://:redis_dev_secret@redis:6379/9
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
CORE_API_URL: http://api:8000
networks:
- aisoc
restart: unless-stopped
purple-team:
# Gated behind the `extras` profile: image isn't published to GHCR yet, so
# `aisoc serve` skips it by default. Opt in with `--profile extras` and the
# local Dockerfile build will run.
profiles: ["extras"]
build:
context: ./services/purple-team
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-purple-team:${AISOC_VERSION:-latest}
pull_policy: build
container_name: aisoc-purple-team
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "127.0.0.1:8006:8006"
environment:
DATABASE_URL: postgresql+asyncpg://aisoc:${POSTGRES_PASSWORD:-aisoc_dev_secret}@postgres:5432/aisoc
REDIS_URL: redis://:redis_dev_secret@redis:6379/10
CORE_API_URL: http://api:8000
ATTCK_DATA_PATH: /app/data/enterprise-attack.json
networks:
- aisoc
restart: unless-stopped
realtime:
build:
context: ./services/realtime
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-realtime:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-realtime
depends_on:
redis:
condition: service_healthy
kafka:
condition: service_healthy
ports:
- "127.0.0.1:8086:4000"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
REDIS_URL: redis://:redis_dev_secret@redis:6379
REDIS_PASSWORD: redis_dev_secret
PORT: 4000
networks:
- aisoc
restart: unless-stopped
# ChatOps adapter. Holds no state — forwards `/aisoc …` slash commands and
# approval-card button clicks to services/api and services/actions. Runs
# under the `chatops` profile so a default `docker compose up` doesn't fail
# when the operator has not yet provisioned a Slack app or service tokens.
slack-bot:
build:
context: ./services/slack-bot
dockerfile: Dockerfile
image: ghcr.io/beenuar/aisoc-slack-bot:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-slack-bot
depends_on:
- api
- actions
ports:
- "127.0.0.1:8009:8089"
profiles:
- chatops
environment:
SLACK_BOT_TOKEN: ${SLACK_BOT_TOKEN:-}
SLACK_SIGNING_SECRET: ${SLACK_SIGNING_SECRET:-}
AISOC_API_BASE_URL: http://api:8000
AISOC_ACTIONS_BASE_URL: http://actions:8085
AISOC_API_SERVICE_TOKEN: ${AISOC_SLACK_API_TOKEN:-}
AISOC_ACTIONS_SERVICE_TOKEN: ${AISOC_SLACK_ACTIONS_TOKEN:-}
AISOC_DEFAULT_TENANT_ID: ${AISOC_DEFAULT_TENANT_ID:-00000000-0000-0000-0000-000000000000}
AISOC_WEB_BASE_URL: ${AISOC_WEB_BASE_URL:-http://localhost:3000}
AISOC_SLACK_BOT_PORT: 8089
AISOC_HTTP_TIMEOUT_SECONDS: 10
networks:
- aisoc
restart: unless-stopped
web:
build:
context: .
dockerfile: apps/web/Dockerfile
image: ghcr.io/beenuar/aisoc-web:${AISOC_VERSION:-latest}
pull_policy: missing
container_name: aisoc-web
depends_on:
- api
- realtime
ports:
- "127.0.0.1:3000:3000"
environment:
NEXT_PUBLIC_API_URL: http://localhost:8000
NEXT_PUBLIC_WS_URL: ws://localhost:8086
NODE_ENV: production
networks:
- aisoc
restart: unless-stopped
# ─── Observability ────────────────────────────────────────────────────────────
prometheus:
image: prom/prometheus:v2.48.0
container_name: aisoc-prometheus
ports:
- "127.0.0.1:9091:9090"
volumes:
- ./infra/docker/prometheus.yml:/etc/prometheus/prometheus.yml:ro
networks:
- aisoc
profiles:
- monitoring
grafana:
image: grafana/grafana:10.2.0
container_name: aisoc-grafana
depends_on:
- prometheus
ports:
- "127.0.0.1:3001:3000"
# Default admin password is intentionally weak for the dev compose stack;
# the 127.0.0.1 binding above keeps the dashboard off the LAN. Override
# GF_SECURITY_ADMIN_PASSWORD in production deployments (helm/terraform).
environment:
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD:-admin}
volumes:
- ./infra/docker/grafana:/etc/grafana/provisioning:ro
networks:
- aisoc
profiles:
- monitoring