From dc9335d149ad9504f4ba2c33dfeb09e380510be9 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 31 Oct 2020 16:59:17 +0100 Subject: [PATCH] Added data-jdbc as git submodule jdbc --- .gitignore | 3 +++ .gitmodules | 4 ++++ docker-compose.yml | 47 ++++++++++++++++++++++++++++++++++++++++++++++ jdbc | 1 + pom.xml | 20 ++++++++++++++++++++ 5 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 docker-compose.yml create mode 160000 jdbc create mode 100644 pom.xml 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 + + + -- 2.20.1