From: Kai Moritz Date: Sat, 31 Oct 2020 15:59:17 +0000 (+0100) Subject: Added data-jdbc as git submodule jdbc X-Git-Tag: part-1~13 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=dc9335d149ad9504f4ba2c33dfeb09e380510be9;p=demos%2Fkafka%2Foutbox Added data-jdbc as git submodule jdbc --- dc9335d149ad9504f4ba2c33dfeb09e380510be9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..612c5bc --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +target +.idea +*.iml diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..9fe6efb --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "data-jdbc"] + path = jdbc + url = kai@juplo.de:/var/lib/git/juplo/demos/spring/data-jdbc + branch = outbox diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bb11901 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,47 @@ +version: "3" + +services: + + zookeeper: + image: "confluentinc/cp-zookeeper:latest" + ports: + - 2181:2181 + environment: + ZOOKEEPER_CLIENT_PORT: 2181 + + kafka: + image: confluentinc/cp-kafka:latest + ports: + - 9092:9092 + environment: + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT + KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092 + KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 + depends_on: + - zookeeper + + jdbc: + image: jdbc:latest + ports: + - 8080:8080 + environment: + spring.profiles.active: production + depends_on: + - postgres + + + postgres: + image: postgres:13 + ports: + - 5432:5432 + environment: + POSTGRES_USER: outbox + POSTGRES_PASSWORD: outbox + POSTGRES_DB: outbox + volumes: + - pgdata:/var/lib/postgresql/data/ + +volumes: + pgdata: diff --git a/jdbc b/jdbc new file mode 160000 index 0000000..4d047ac --- /dev/null +++ b/jdbc @@ -0,0 +1 @@ +Subproject commit 4d047ac98c61563fbb9986b6ce1e4d6ead5a1e48 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d11a4d7 --- /dev/null +++ b/pom.xml @@ -0,0 +1,20 @@ + + + + 4.0.0 + + de.juplo.kafka.outbox + polling-outbox-parent + 0.0.1-SNAPSHOT + pom + polling-outbox-parent + Simple example-implementation of the Polling-Outbox-Pattern + + + jdbc + + +