-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
148 lines (141 loc) · 4.5 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
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
version: '3.7'
name: llm-support-agent-data-pipeline
services:
redpanda:
container_name: redpanda
image: docker.redpanda.com/redpandadata/redpanda:v23.2.19
command:
- redpanda start
- --smp 1
- --overprovisioned
- --node-id 0
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
# Address the broker advertises to clients that connect to the Kafka API.
- --advertise-kafka-addr internal://redpanda:9092,external://localhost:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
# Address the broker advertises to clients that connect to the HTTP Proxy.
- --advertise-pandaproxy-addr internal://redpanda:8082,external://localhost:18082
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
# Redpanda brokers use the RPC API to communicate with each other internally.
- --rpc-addr redpanda:33145
- --advertise-rpc-addr redpanda:33145
- --mode dev-container
ports:
- 18081:8081
- 18082:8082
- 19092:9092
- 19644:9644
healthcheck:
test: ["CMD-SHELL", "rpk cluster health | grep -E 'Healthy:.+true' || exit 1"]
interval: 15s
timeout: 3s
retries: 5
start_period: 5s
console:
container_name: redpanda-console
image: docker.redpanda.com/redpandadata/console:v2.3.8
entrypoint: /bin/sh
command: -c "echo \"$$CONSOLE_CONFIG_FILE\" > /tmp/config.yml; /app/console"
environment:
CONFIG_FILEPATH: /tmp/config.yml
CONSOLE_CONFIG_FILE: |
kafka:
brokers: ["redpanda:9092"]
schemaRegistry:
enabled: true
urls: ["http://redpanda:8081"]
redpanda:
adminApi:
enabled: true
urls: ["http://redpanda:9644"]
connect:
enabled: true
clusters:
- name: local-connect-cluster
url: http://connect:8083
ports:
- 8080:8080
depends_on:
- redpanda
ai-support-agent-1:
container_name: ai-support-agent-1
restart: always
build:
context: "./AI Customer Support Agent"
volumes:
- ./llama-2-7b-chat.Q4_K_M.gguf:/state/llama-2-7b-chat.Q4_K_M.gguf
environment:
- KAFKA_BROKER_ADDRESS=redpanda:9092
- input=ai-chat
- Quix__Portal__Api=https://portal-api.platform.quix.io
- Quix__Sdk__Token=${QUIX_SDK_TOKEN}
- use_local_kafka=true
depends_on:
- redpanda
ai-customer-1:
container_name: ai-customer-1
restart: always
build:
context: "./AI Customer"
volumes:
- ./llama-2-7b-chat.Q4_K_M.gguf:/state/llama-2-7b-chat.Q4_K_M.gguf
environment:
- KAFKA_BROKER_ADDRESS=redpanda:9092
- input=ai-chat
- conversation_length=5
- Quix__Portal__Api=https://portal-api.platform.quix.io
- Quix__Sdk__Token=${QUIX_SDK_TOKEN}
- use_local_kafka=true
depends_on:
- redpanda
sentiment-analyzer:
container_name: sentiment-analyzer
restart: always
build:
context: "./Sentiment Analyzer"
environment:
- KAFKA_BROKER_ADDRESS=redpanda:9092
- input=ai-chat
- output=ai-chat-history-with-sentiment
- buffer_delay=0
- Quix__Portal__Api=https://portal-api.platform.quix.io
- Quix__Sdk__Token=${QUIX_SDK_TOKEN}
- use_local_kafka=true
depends_on:
- redpanda
influx-sink:
container_name: influx-sink
restart: always
build:
context: "./InfluxDB 3.0 Sink"
environment:
- KAFKA_BROKER_ADDRESS=redpanda:9092
- input=ai-chat-history-with-sentiment
- INFLUXDB_HOST=https://eu-central-1-1.aws.cloud2.influxdata.com
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
- INFLUXDB_ORG=${INFLUX_ORG}
- INFLUXDB_DATABASE=${INFLUX_BUCKET}
- INFLUXDB_TAG_COLUMNS=[]
- INFLUXDB_MEASUREMENT_NAME=${INFLUX_MEASUREMENT}
- Quix__Portal__Api=https://portal-api.platform.quix.io
- Quix__Sdk__Token=${QUIX_SDK_TOKEN}
- use_local_kafka=true
depends_on:
- redpanda
dashboard:
container_name: dashboard
restart: always
build:
context: "./Streamlit Dashboard"
environment:
- chat_count=3
- style_sheet=style.css
- INFLUXDB_HOST=https://eu-central-1-1.aws.cloud2.influxdata.com
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
- INFLUXDB_ORG=${INFLUX_ORG}
- INFLUXDB_DATABASE=${INFLUX_BUCKET}
- INFLUXDB_MEASUREMENT_NAME=${INFLUX_MEASUREMENT}
ports:
- 8091:80
depends_on:
- redpanda