-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
182 lines (172 loc) · 4.64 KB
/
Copy pathdocker-compose.yml
File metadata and controls
182 lines (172 loc) · 4.64 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
services:
postgres:
image: pgvector/pgvector:pg15
container_name: bindingchaos_postgres
environment:
POSTGRES_DB: bindingchaos
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d bindingchaos"]
interval: 10s
timeout: 5s
retries: 5
networks:
- bindingchaos_network
redis:
image: redis:7-alpine
container_name: bindingchaos_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- bindingchaos_network
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: bindingchaos_rabbitmq
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER:-dev_user}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD:-dev_password}
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- bindingchaos_network
keycloak:
image: quay.io/keycloak/keycloak:24.0
container_name: bindingchaos_keycloak
depends_on:
postgres:
condition: service_healthy
environment:
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN_USER:-admin}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD:-admin}
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/bindingchaos
KC_DB_USERNAME: ${POSTGRES_USER:-postgres}
KC_DB_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
KC_DB_SCHEMA: keycloak
KC_PROXY: edge
KC_HTTP_ENABLED: "true"
KC_HEALTH_ENABLED: "true"
KC_METRICS_ENABLED: "true"
command: ["start-dev", "--import-realm"]
volumes:
- ./config/keycloak/:/opt/keycloak/data/import/
ports:
- "7080:8080"
healthcheck:
test: ["CMD-SHELL", "bash -lc 'exec 3<>/dev/tcp/localhost/8080; printf \"GET /health/ready HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n\" >&3; head -n 1 <&3 | grep -q \"200\"'"]
interval: 10s
timeout: 5s
retries: 10
networks:
- bindingchaos_network
minio:
image: minio/minio:latest
container_name: bindingchaos_minio
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
networks:
- bindingchaos_network
seq:
image: datalust/seq
container_name: bindingchaos_seq
environment:
- ACCEPT_EULA=Y
- SEQ_FIRSTRUN_ADMINPASSWORD=${SEQ_ADMIN_PASSWORD:-admin}
ports:
- "5341:80"
volumes:
- seq_data:/data
networks:
- bindingchaos_network
neo4j:
image: neo4j:5
container_name: bindingchaos_neo4j
environment:
NEO4J_AUTH: none
ports:
- "7474:7474"
- "7687:7687"
volumes:
- neo4j_data:/data
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:7474 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
networks:
- bindingchaos_network
text-embeddings:
image: ghcr.io/huggingface/text-embeddings-inference:cpu-1.6
container_name: bindingchaos_text_embeddings
restart: unless-stopped
ports:
- "8080:8080"
environment:
HF_ENDPOINT: "https://huggingface.co"
dns:
- 8.8.8.8
- 8.8.4.4
volumes:
- tei_model_cache:/data
command: ["--model-id", "BAAI/bge-small-en-v1.5", "--revision", "main", "--port", "8080"]
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8080/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
networks:
- bindingchaos_network
clustering:
build:
context: ./services/clustering
dockerfile: Dockerfile
container_name: bindingchaos_clustering
restart: unless-stopped
ports:
- "8081:8081"
healthcheck:
test: ["CMD-SHELL", "python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:8081/health')\""]
interval: 10s
timeout: 5s
retries: 5
networks:
- bindingchaos_network
volumes:
postgres_data:
redis_data:
rabbitmq_data:
minio_data:
seq_data:
neo4j_data:
tei_model_cache:
networks:
bindingchaos_network:
driver: bridge