Created
August 10, 2021 09:17
-
-
Save dunithd/da791254a656c1f1f48552abd44852cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
postgres: | |
image: debezium/postgres:13 | |
ports: | |
- 5432:5432 | |
healthcheck: | |
test: "pg_isready -U postgresuser -d shipment_db" | |
interval: 2s | |
timeout: 20s | |
retries: 10 | |
environment: | |
- POSTGRES_USER=postgresuser | |
- POSTGRES_PASSWORD=postgrespw | |
- POSTGRES_DB=shipment_db | |
- PGPASSWORD=postgrespw | |
volumes: | |
- ./scripts:/docker-entrypoint-initdb.d | |
zookeeper: | |
image: confluentinc/cp-zookeeper:5.5.3 | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
kafka: | |
image: confluentinc/cp-enterprise-kafka:5.5.3 | |
depends_on: [zookeeper] | |
environment: | |
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181" | |
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092 | |
KAFKA_BROKER_ID: 1 | |
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | |
KAFKA_JMX_PORT: 9991 | |
ports: | |
- 9092:9092 | |
debezium: | |
image: debezium/connect:1.4 | |
environment: | |
BOOTSTRAP_SERVERS: kafka:9092 | |
GROUP_ID: 1 | |
CONFIG_STORAGE_TOPIC: connect_configs | |
OFFSET_STORAGE_TOPIC: connect_offsets | |
KEY_CONVERTER: io.confluent.connect.avro.AvroConverter | |
VALUE_CONVERTER: io.confluent.connect.avro.AvroConverter | |
CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL: http://schema-registry:8081 | |
CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: http://schema-registry:8081 | |
depends_on: [kafka] | |
ports: | |
- 8083:8083 | |
schema-registry: | |
image: confluentinc/cp-schema-registry:5.5.3 | |
environment: | |
- SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=zookeeper:2181 | |
- SCHEMA_REGISTRY_HOST_NAME=schema-registry | |
- SCHEMA_REGISTRY_LISTENERS=http://schema-registry:8081,http://localhost:8081 | |
depends_on: [zookeeper, kafka] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment