Released the component for part 1 of the blog series
[demos/spring/data-jdbc] / docker-compose.yml
index 79f5d1c..1b09b5f 100644 (file)
@@ -2,6 +2,24 @@ version: "3"
 
 services:
   jdbc:
-    image: jdbc:latest
+    image: juplo/data-jdbc:polling-outbox-1
     ports:
       - 8080:8080
+    environment:
+      spring.profiles.active: prod
+    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: