Added data-jdbc as git submodule jdbc
authorKai Moritz <kai@juplo.de>
Sat, 31 Oct 2020 15:59:17 +0000 (16:59 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 31 Oct 2020 16:16:40 +0000 (17:16 +0100)
.gitignore [new file with mode: 0644]
.gitmodules [new file with mode: 0644]
docker-compose.yml [new file with mode: 0644]
jdbc [new submodule]
pom.xml [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..612c5bc
--- /dev/null
@@ -0,0 +1,3 @@
+target
+.idea
+*.iml
diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..9fe6efb
--- /dev/null
@@ -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 (file)
index 0000000..bb11901
--- /dev/null
@@ -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 (submodule)
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 (file)
index 0000000..d11a4d7
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+    xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>de.juplo.kafka.outbox</groupId>
+  <artifactId>polling-outbox-parent</artifactId>
+  <version>0.0.1-SNAPSHOT</version>
+  <packaging>pom</packaging>
+  <name>polling-outbox-parent</name>
+  <description>Simple example-implementation of the Polling-Outbox-Pattern</description>
+
+  <modules>
+    <module>jdbc</module>
+  </modules>
+
+</project>