-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
209 lines (209 loc) · 7.28 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
version: '3.7'
services:
neo4j:
image: ${MIRROR_REPOSITORY}/neo4j:${NEO4J_VERSION}
ports:
- "${NEO4J_HTTP_PORT:-7474}:7474"
- "${NEO4J_BOLT_PORT:-7687}:7687"
environment:
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
- NEO4J_AUTH=neo4j/password
- NEO4J_dbms_memory_heap_maxSize=4G
- NEO4J_dbms_connector_bolt_advertised__address=${HUME_ADVERTISED_ADDRESS:-localhost}:${NEO4J_PORT:-7687}
- NEO4JLABS_PLUGINS=["apoc","graph-data-science"]
- NEO4J_apoc_trigger_enabled=true
volumes:
- "hume_neo4j_data:/data"
- "hume_neo4j_plugins:/plugins"
neo4j-config-cli:
image: graphaware/neo4j-config-cli:1.3.0
environment:
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=password
- NEO4J_URI=bolt://neo4j:7687
- IMPORT_PATH=/config
volumes:
- "./config/neo4j-config:/config"
postgres:
image: ${MIRROR_REPOSITORY}/postgres:12-alpine
environment:
POSTGRES_PASSWORD: ${HUME_DB_PASSWORD:-pgsqls3cr3t}
POSTGRES_USER: ${HUME_DB_USER:-hume}
ports:
- 5432:5432
volumes:
- "hume_postgres_data:/var/lib/postgresql/data"
postgres-controller:
image: ${MIRROR_REPOSITORY}/postgres:12-alpine
environment:
POSTGRES_USER: alert-controller
POSTGRES_PASSWORD: alert
command: -p 5433
ports:
- 5433:5433
networks:
- default
volumes:
- "hume_controller_data:/var/lib/postgresql/data"
postgres-operator:
image: ${MIRROR_REPOSITORY}/postgres:12-alpine
environment:
POSTGRES_USER: operator
POSTGRES_PASSWORD: operator
command: -p 5434
ports:
- 5434:5434
networks:
- default
volumes:
- "hume_operator_data:/var/lib/postgresql/data"
api:
image: ${RELEASE_REPOSITORY}/hume-api:${HUME_VERSION}
ports:
- "8080:8080"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/${HUME_DB_USER:-hume}
- SPRING_DATASOURCE_USERNAME=${HUME_DB_USER:-hume}
- SPRING_DATASOURCE_PASSWORD=${HUME_DB_PASSWORD:-pgsqls3cr3t}
- hume.orchestra.uri=http://orchestra:8100
- HUME_FEATURE_ALERTS_ENABLED=true
- HUME_FEATURE_COLLECTIONS_ENABLED=true
- HUME_ALERTING_URI=http://alerting-controller:8200
- alerting.client.enabled=true
- com.hume.core.admin.setup.step.admin_creation.auto=true
- com.hume.core.admin.setup.step.admin_creation.username=admin@hume.ga
- com.hume.core.admin.setup.step.admin_creation.name=Auto Admin
- com.hume.core.admin.setup.step.admin_creation.password=password
- com.hume.core.security.license.b64=${HUME_LICENCE_KEY}
- hume.config-as-code.enabled=true
- hume.config-as-code.import-dir=/init
- hume.config-as-code.autoload=true
- hume.security.encryption.engine=keystore
- hume.security.encryption.keystore.file=/opt/hume-keystore
- hume.security.encryption.keystore.password=changeit
- hume.security.encryption.keystore.secret.alias=secret
- GRAPHQL_KEY_TOKEN=${API_KEY_SECRET}
- NEO4J_DB_PASSWORD=${NEO4J_PASSWORD}
volumes:
- "./config/hume:/init"
- "./config/keystore/hume-keystore:/opt/hume-keystore"
orchestra:
image: ${RELEASE_REPOSITORY}/hume-orchestra:${HUME_VERSION}
ports:
- 8100:8100
- 8666:8666
environment:
- orchestra.startup.workflows.autoload=true
- hume.security.encryption.engine=keystore
- hume.security.encryption.keystore.file=/opt/hume-keystore
- hume.security.encryption.keystore.password=changeit
- hume.security.encryption.keystore.secret.alias=secret
volumes:
- ${HUME_PUBLIC_DIR:-./public}:/data
- "./config/keystore/hume-keystore:/opt/hume-keystore"
web:
image: ${RELEASE_REPOSITORY}/hume-web:${HUME_VERSION}
environment:
- HUME_API_URL=http://${HUME_ADVERTISED_ADDRESS:-localhost}:${HUME_API_PORT:-8080}
ports:
- "${HUME_FRONT_PORT:-8081}:8081"
alerting-controller:
image: ${RELEASE_REPOSITORY}/hume-alerting-controller:${HUME_VERSION}
environment:
- BROKERS=kafka:9092
- spring.mail.host=mail
- spring.mail.port=1025
- spring.mail.username=
- spring.mail.password=
- spring.mail.properties.mail.smtp.auth=false
- spring.kafka.consumer.bootstrap-servers=kafka:9092
- POSTGRES-JDBC=jdbc:postgresql://postgres-controller:5433/alert-controller
- POSTGRES-USER=alert-controller
- POSTGRES-PASSWORD=alert
- controller.remoteEventsEnabled=true
- kafka.topics.prefix=${KAFKA_TOPICS_PREFIX}
- kafka.topics.names.feedback=feedback
- kafka.topics.names.scheduler=scheduler
- kafka.topics.names.action=actions
- kafka.topics.names.notification=notification
- kafka.topics.names.dryRunRequest=dryrun-request
- kafka.topics.names.dryRunResult=dryrun-result
- kafka.topics.names.remoteEvents=events
ports:
- 8200:8200
depends_on:
- postgres-controller
alerting-operator:
image: ${RELEASE_REPOSITORY}/hume-alerting-operator:${HUME_VERSION}
environment:
- BROKERS=kafka:9092
- ZKNODES=zookeeper:2181
- POSTGRES-JDBC=jdbc:postgresql://postgres-operator:5434/operator?rewriteBatchedStatements=true
- POSTGRES-USER=operator
- POSTGRES-PASSWORD=operator
- hume.security.encryption.engine=keystore
- hume.security.encryption.keystore.file=/opt/hume-keystore
- hume.security.encryption.keystore.password=changeit
- hume.security.encryption.keystore.secret.alias=secret
- kafka.topics.prefix=${KAFKA_TOPICS_PREFIX}
- kafka.topics.names.feedback=feedback
- kafka.topics.names.scheduler=scheduler
- kafka.topics.names.action=actions
- kafka.topics.names.notification=notification
- kafka.topics.names.dryRunRequest=dryrun-request
- kafka.topics.names.dryRunResult=dryrun-result
depends_on:
- postgres-operator
volumes:
- "./config/keystore/hume-keystore:/opt/hume-keystore"
deploy:
replicas: 2
zookeeper:
image: bitnami/zookeeper:3-debian-10
ports:
- 2181:2181
volumes:
- zookeeper_data:/bitnami
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: bitnami/kafka:2-debian-10
ports:
- 9092:9092
volumes:
- kafka_data:/bitnami
environment:
- KAFKA_ADVERTISED_HOST_NAME=kafka
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENERS=INTERNAL://kafka:9093,EXTERNAL://kafka:9092
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_ADVERTISED_LISTENERS=INTERNAL://kafka:9093,EXTERNAL://kafka:9092
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_CFG_NUM_PARTITIONS=2
depends_on:
- zookeeper
kafdrop:
image: obsidiandynamics/kafdrop
ports:
- 9100:9000
environment:
- KAFKA_BROKERCONNECT=kafka:9092
- JVM_OPTS=-Xms32M -Xmx64M
depends_on:
- kafka
mail:
image: docker.graphaware.com/mirror/mailhog/mailhog:v1.0.1
ports:
- 1025:1025
- 8025:8025
volumes:
hume_postgres_data:
hume_controller_data:
hume_operator_data:
hume_neo4j_data:
hume_neo4j_plugins:
zookeeper_data:
kafka_data: