-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
158 lines (143 loc) · 3.89 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
149
150
151
152
153
154
155
156
157
158
version: '3.9'
services:
zookeeper:
image: confluentinc/cp-zookeeper:7.4.0
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- "2181:2181"
kafka:
image: confluentinc/cp-kafka:7.4.0
restart: always
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:29092,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
kafka-ui:
image: provectuslabs/kafka-ui:latest
depends_on:
- kafka
ports:
- "8082:8080"
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:29092
KAFKA_CLUSTERS_0_ZOOKEEPER: zookeeper:2181
db:
image: postgres
restart: always
environment:
- POSTGRES_PASSWORD=mysecretpassword
# ports:
# - 5432:5432
volumes:
- ${HOME}/data/postgresdata:/var/lib/postgresql/data
redis-db:
image: redis
restart: always
# ports:
# - 6379:6379
weaviate:
image: cr.weaviate.io/semitechnologies/weaviate:1.24.20
restart: on-failure:0
volumes:
- ${HOME}/data/weaviate:/var/lib/weaviate
ports:
- 8080:8080
- 50051:50051
environment:
QUERY_DEFAULTS_LIMIT: 20
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: "./data"
ENABLE_MODULES: 'text2vec-transformers,generative-ollama'
DEFAULT_VECTORIZER_MODULE: text2vec-transformers
TRANSFORMERS_INFERENCE_API: http://t2v-transformers:8080
CLUSTER_HOSTNAME: 'node1'
t2v-transformers: # Set the name of the inference container
image: cr.weaviate.io/semitechnologies/transformers-inference:sentence-transformers-multi-qa-MiniLM-L6-cos-v1
environment:
ENABLE_CUDA: 0 # set to 1 to enable
# qna-transformers:
# image: cr.weaviate.io/semitechnologies/qna-transformers:bert-large-uncased-whole-word-masking-finetuned-squad
# environment:
# ENABLE_CUDA: 0
# rabbitmq:
# image: rabbitmq:3-management-alpine
# container_name: rabbitmq
# hostname: rabbitmq
# ports:
# - 5672:5672 # for sender and consumer connections
# - 15672:15672 # for serve RabbitMQ GUI
# volumes:
# - ${HOME}/dev-rabbitmq/data/:/var/lib/rabbitmq
# - ${HOME}/dev-rabbitmq/log/:/var/log/rabbitmq
# restart: always
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3003:3000"
volumes:
- grafana-storage:/var/lib/grafana
depends_on:
- prometheus
go-app:
build:
context: ./
dockerfile: backend.dockerfile
restart: always
ports:
- 3000:3000
- 3001:3001
depends_on:
- rabbitmq
- db
- redis-db
- weaviate
- kafka
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: rabbitmq
ports:
- 5672:5672 # for sender and consumer connections
- 15672:15672 # for serve RabbitMQ GUI
volumes:
- ${HOME}/data/rabbitmq/data/:/var/lib/rabbitmq
- ${HOME}/data/rabbitmq/log/:/var/log/rabbitmq
restart: always
frontend:
restart: always
build:
context: ./
dockerfile: frontend.dockerfile
ports:
- 4000:4000
caddy:
image: caddy
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
volumes:
grafana-storage: