-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.consciousness.yml
More file actions
156 lines (145 loc) · 4.77 KB
/
docker-compose.consciousness.yml
File metadata and controls
156 lines (145 loc) · 4.77 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
# Simplified Docker Compose for testing consciousness improvements
# This runs a minimal setup focusing on the enhanced capabilities
version: '3.8'
services:
# PostgreSQL Database (Required)
db:
image: pgvector/pgvector:pg16
container_name: sentinel_db_consciousness
environment:
POSTGRES_USER: sentinel
POSTGRES_PASSWORD: sentinel123
POSTGRES_DB: sentinel_db
ports:
- "5432:5432"
volumes:
- sentinel_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sentinel -d sentinel_db"]
interval: 5s
timeout: 5s
retries: 5
# API Gateway with Consciousness Endpoints
api_gateway:
build:
context: .
dockerfile: sentinel_backend/api_gateway/Dockerfile.prod
container_name: sentinel_api_gateway_consciousness
environment:
DATABASE_URL: postgresql://sentinel:sentinel123@db:5432/sentinel_db
AUTH_SERVICE_URL: http://auth_service:8005
SPEC_SERVICE_URL: http://spec_service:8001
ORCHESTRATION_SERVICE_URL: http://orchestration_service:8002
DATA_SERVICE_URL: http://data_service:8004
EXECUTION_SERVICE_URL: http://execution_service:8003
RUST_CORE_URL: http://consciousness_simulator:8088
JWT_SECRET_KEY: your-secret-key-here
ENABLE_CONSCIOUSNESS: "true"
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
consciousness_simulator:
condition: service_started
# Consciousness Simulator Service
# This Python service simulates the Rust consciousness features
consciousness_simulator:
build:
context: .
dockerfile: Dockerfile.consciousness
container_name: sentinel_consciousness_simulator
environment:
ENABLE_CONSCIOUSNESS: "true"
ENABLE_TEMPORAL_ADVANTAGE: "true"
ENABLE_PSYCHO_SYMBOLIC: "true"
ENABLE_NANOSECOND_SCHEDULER: "true"
ports:
- "8088:8088"
volumes:
- ./test_consciousness_improvements.py:/app/simulator.py
- ./src:/app/src
command: python -m http.server 8088
# Minimal required services
auth_service:
build:
context: .
dockerfile: sentinel_backend/auth_service/Dockerfile.prod
container_name: sentinel_auth_consciousness
environment:
DATABASE_URL: postgresql://sentinel:sentinel123@db:5432/sentinel_db
SENTINEL_DB_URL: postgresql+asyncpg://sentinel:sentinel123@db:5432/sentinel_db
JWT_SECRET_KEY: your-secret-key-here
ports:
- "8005:8005"
depends_on:
db:
condition: service_healthy
spec_service:
build:
context: .
dockerfile: sentinel_backend/spec_service/Dockerfile.prod
container_name: sentinel_spec_consciousness
environment:
DATABASE_URL: postgresql://sentinel:sentinel123@db:5432/sentinel_db
SENTINEL_DB_URL: postgresql+asyncpg://sentinel:sentinel123@db:5432/sentinel_db
ports:
- "8001:8001"
depends_on:
db:
condition: service_healthy
orchestration_service:
build:
context: .
dockerfile: sentinel_backend/orchestration_service/Dockerfile.prod
container_name: sentinel_orchestration_consciousness
environment:
DATABASE_URL: postgresql://sentinel:sentinel123@db:5432/sentinel_db
SENTINEL_DB_URL: postgresql+asyncpg://sentinel:sentinel123@db:5432/sentinel_db
EXECUTION_SERVICE_URL: http://execution_service:8003
DATA_SERVICE_URL: http://data_service:8004
RUST_CORE_URL: http://consciousness_simulator:8088
MESSAGE_BROKER_URL: amqp://guest:guest@message_broker:5672/
ENABLE_CONSCIOUSNESS: "true"
ports:
- "8002:8002"
depends_on:
db:
condition: service_healthy
execution_service:
build:
context: .
dockerfile: sentinel_backend/execution_service/Dockerfile.prod
container_name: sentinel_execution_consciousness
environment:
DATABASE_URL: postgresql://sentinel:sentinel123@db:5432/sentinel_db
SENTINEL_DB_URL: postgresql+asyncpg://sentinel:sentinel123@db:5432/sentinel_db
ports:
- "8003:8003"
depends_on:
db:
condition: service_healthy
data_service:
build:
context: .
dockerfile: sentinel_backend/data_service/Dockerfile.prod
container_name: sentinel_data_consciousness
environment:
DATABASE_URL: postgresql://sentinel:sentinel123@db:5432/sentinel_db
SENTINEL_DB_URL: postgresql+asyncpg://sentinel:sentinel123@db:5432/sentinel_db
ports:
- "8004:8004"
depends_on:
db:
condition: service_healthy
message_broker:
image: rabbitmq:3-management
container_name: sentinel_message_broker_consciousness
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- "5672:5672"
- "15672:15672"
volumes:
sentinel_postgres_data: