-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
164 lines (156 loc) · 4.15 KB
/
docker-compose.yml
File metadata and controls
164 lines (156 loc) · 4.15 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
services:
# PostgreSQL for structured memory storage
postgres:
image: postgres:15-alpine
container_name: braincell-postgres
environment:
POSTGRES_DB: braincell
POSTGRES_USER: braincell
POSTGRES_PASSWORD: braincell_dev_password
ports:
- "9500:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U braincell"]
interval: 10s
timeout: 5s
retries: 5
networks:
- braincell-network
# Weaviate vector database for semantic search
weaviate:
image: semitechnologies/weaviate:1.27.0
container_name: braincell-weaviate
ports:
- "9501:8080"
- "9502:50051"
environment:
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
ENABLE_API_AUTH: 'false'
RAFT_BOOTSTRAP_EXPECTED_NODES: '1'
RAFT_BOOTSTRAP_TIMEOUT: '300'
volumes:
- weaviate_data:/var/lib/weaviate
networks:
- braincell-network
# Redis for caching and sessions
redis:
image: redis:7-alpine
container_name: braincell-redis
ports:
- "9503:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- braincell-network
# PgAdmin for PostgreSQL management (optional)
pgadmin:
image: dpage/pgadmin4:latest
container_name: braincell-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "9505:80"
depends_on:
- postgres
networks:
- braincell-network
# BrainCell REST API
api:
build:
context: ../
dockerfile: ITL.BrainCell.Api/Dockerfile
image: itlusions/braincell-api:latest
container_name: braincell-api
ports:
- "9504:8000"
environment:
- DATABASE_URL=postgresql://braincell:braincell_dev_password@braincell-postgres:5432/braincell
- WEAVIATE_URL=http://braincell-weaviate:8080
- REDIS_URL=redis://braincell-redis:6379
- ENVIRONMENT=production
depends_on:
postgres:
condition: service_healthy
weaviate:
condition: service_started
redis:
condition: service_healthy
networks:
- braincell-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 5
# BrainCell MCP Server
mcp:
build:
context: ../
dockerfile: ITL.BrainCell.Mcp/Dockerfile
image: itlusions/braincell-mcp:latest
container_name: braincell-mcp
ports:
- "9506:9506"
environment:
- DATABASE_URL=postgresql://braincell:braincell_dev_password@braincell-postgres:5432/braincell
- WEAVIATE_URL=http://braincell-weaviate:8080
- REDIS_URL=redis://braincell-redis:6379
- ENVIRONMENT=production
depends_on:
postgres:
condition: service_healthy
weaviate:
condition: service_started
redis:
condition: service_healthy
networks:
- braincell-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9506/health"]
interval: 10s
timeout: 5s
retries: 5
# BrainCell Web Dashboard
dashboard:
build:
context: ../
dockerfile: ITL.BrainCell.Dashboard/Dockerfile
image: itlusions/braincell-dashboard:latest
container_name: braincell-dashboard
ports:
- "9507:8001"
environment:
- DATABASE_URL=postgresql://braincell:braincell_dev_password@braincell-postgres:5432/braincell
- BRAINCELL_API_URL=http://braincell-api:8000
- ENVIRONMENT=production
depends_on:
api:
condition: service_healthy
networks:
- braincell-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
weaviate_data:
redis_data:
networks:
braincell-network:
name: braincell-network
driver: bridge