-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
73 lines (67 loc) · 2 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
version: "3.9"
# AEGIS Knowledge Memory and Decision Layer — POC Docker Compose
# Starts Neo4j (graph database) and the Streamlit validation UI.
# The Python pipeline runs locally (outside Docker) using the .env config.
services:
neo4j:
image: neo4j:5.18-community
container_name: aegis_neo4j
ports:
- "7474:7474" # Neo4j Browser
- "7687:7687" # Bolt protocol (Python driver)
environment:
NEO4J_AUTH: neo4j/aegispassword
NEO4J_PLUGINS: '["apoc"]'
NEO4J_dbms_security_procedures_unrestricted: "apoc.*"
NEO4J_dbms_memory_pagecache_size: "512M"
NEO4J_dbms_memory_heap_max__size: "1G"
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
- neo4j_plugins:/plugins
healthcheck:
test: ["CMD", "neo4j", "status"]
interval: 30s
timeout: 10s
retries: 5
restart: unless-stopped
# Optional: PostgreSQL for audit logs and validation queue persistence
# Uncomment if you want to replace the JSON file-based validation store.
# postgres:
# image: postgres:16-alpine
# container_name: aegis_postgres
# ports:
# - "5432:5432"
# environment:
# POSTGRES_DB: aegis_audit
# POSTGRES_USER: aegis
# POSTGRES_PASSWORD: aegispassword
# volumes:
# - postgres_data:/var/lib/postgresql/data
# restart: unless-stopped
streamlit:
build:
context: .
dockerfile: Dockerfile.streamlit
container_name: aegis_streamlit
ports:
- "8501:8501"
environment:
NEO4J_URI: bolt://neo4j:7687
NEO4J_USER: neo4j
NEO4J_PASSWORD: aegispassword
VALIDATION_STORE_PATH: /app/data/processed/validation_queue.json
volumes:
- ./data:/app/data
- ./src:/app/src
- ./app:/app/app
depends_on:
neo4j:
condition: service_healthy
command: streamlit run /app/app/streamlit_app.py --server.port=8501 --server.address=0.0.0.0
restart: unless-stopped
volumes:
neo4j_data:
neo4j_logs:
neo4j_plugins:
# postgres_data: