blob: 6cb1988707de16ee399f3eebe6d8b2c36e03abc0 [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
version: '2'
services:
kafka:
image: vectorized/redpanda:v21.11.8
ports:
- "9092:9092"
- "29092:29092"
command:
- redpanda
- start
- --smp
- '1'
- --reserve-memory
- 0M
- --overprovisioned
- --node-id
- '0'
- --kafka-addr
- PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --advertise-kafka-addr
- PLAINTEXT://kafka:29092,OUTSIDE://localhost:9092
kafdrop:
image: obsidiandynamics/kafdrop
ports:
- "9000:9000"
links:
- kafka
depends_on:
- kafka
environment:
KAFKA_BROKERCONNECT: "kafka:29092"
JVM_OPTS: "-Xms32M -Xmx64M"
SERVER_SERVLET_CONTEXTPATH: "/"
mongodb:
build: ./mongodb
image: kogito/outbox/springboot/mongodb
hostname: mongodb
ports:
- "27017:27017"
environment:
- MONGODB_USER=debezium
- MONGODB_PASSWORD=dbz
connect:
image: quay.io/debezium/connect:${DEBEZIUM_VERSION}
ports:
- "8083:8083"
links:
- kafka
- mongodb
depends_on:
- kafka
- mongodb
environment:
- BOOTSTRAP_SERVERS=kafka:29092
- GROUP_ID=1
- CONFIG_STORAGE_TOPIC=kogito_connect_configs
- OFFSET_STORAGE_TOPIC=kogito_connect_offsets
- STATUS_STORAGE_TOPIC=kogito_connect_statuses
sidecar:
build: ./sidecar
image: kogito/outbox/springboot/sidecar
links:
- connect
- mongodb
depends_on:
- connect
- mongodb
environment:
- MONGODB_HOST=mongodb:27017
- MONGODB_RS=rs0
- MONGODB_USER=debezium
- MONGODB_PASSWORD=dbz
- KAFKA_HOST=kafka:29092
- CONNECT_HOST=connect:8083
kogito:
image: org.kie.kogito.examples/process-outbox-mongodb-springboot:1.0
ports:
- "8080:8080"
links:
- mongodb
depends_on:
- mongodb
- sidecar
environment:
- MONGODB_HOST=mongodb:27017
- MONGODB_USERNAME=debezium
- MONGODB_PASSWORD=dbz
- MONGODB_AUTH_SOURCE=admin