-
Notifications
You must be signed in to change notification settings - Fork 477
/
docker-compose.yml
112 lines (104 loc) · 2.56 KB
/
docker-compose.yml
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
services:
mongo1:
image: mongo:5
container_name: llm-twin-mongo1
command: ["--replSet", "my-replica-set", "--bind_ip_all", "--port", "30001"]
volumes:
- mongo-replica-1-data:/data/db
ports:
- "30001:30001"
healthcheck:
test: test $$(echo "rs.initiate({_id:'my-replica-set',members:[{_id:0,host:\"mongo1:30001\"},{_id:1,host:\"mongo2:30002\"},{_id:2,host:\"mongo3:30003\"}]}).ok || rs.status().ok" | mongo --port 30001 --quiet) -eq 1
interval: 10s
start_period: 30s
restart: always
mongo2:
image: mongo:5
container_name: llm-twin-mongo2
command: ["--replSet", "my-replica-set", "--bind_ip_all", "--port", "30002"]
volumes:
- mongo-replica-2-data:/data/db
ports:
- "30002:30002"
restart: always
mongo3:
image: mongo:5
container_name: llm-twin-mongo3
command: ["--replSet", "my-replica-set", "--bind_ip_all", "--port", "30003"]
volumes:
- mongo-replica-3-data:/data/db
ports:
- "30003:30003"
restart: always
mq:
image: rabbitmq:3-management-alpine
container_name: llm-twin-mq
ports:
- "5673:5672"
- "15673:15672"
volumes:
- ./rabbitmq/data/:/var/lib/rabbitmq/
- ./rabbitmq/log/:/var/log/rabbitmq
restart: always
qdrant:
image: qdrant/qdrant:latest
container_name: llm-twin-qdrant
ports:
- "6333:6333"
- "6334:6334"
expose:
- "6333"
- "6334"
- "6335"
volumes:
- qdrant-data:/qdrant_data
restart: always
data-crawlers:
image: "llm-twin-data-crawlers"
container_name: llm-twin-data-crawlers
platform: "linux/amd64"
build:
context: .
dockerfile: .docker/Dockerfile.data_crawlers
env_file:
- .env
ports:
- "9010:8080"
depends_on:
- mongo1
- mongo2
- mongo3
data_cdc:
image: "llm-twin-data-cdc"
container_name: llm-twin-data-cdc
build:
context: .
dockerfile: .docker/Dockerfile.data_cdc
env_file:
- .env
depends_on:
- mongo1
- mongo2
- mongo3
- mq
feature_pipeline:
image: "llm-twin-feature-pipeline"
container_name: llm-twin-feature-pipeline
build:
context: .
dockerfile: .docker/Dockerfile.feature_pipeline
environment:
BYTEWAX_PYTHON_FILE_PATH: "main:flow"
DEBUG: "false"
BYTEWAX_KEEP_CONTAINER_ALIVE: "true"
env_file:
- .env
depends_on:
- mq
- qdrant
restart: always
volumes:
mongo-replica-1-data:
mongo-replica-2-data:
mongo-replica-3-data:
qdrant-data: