This is an automated email from the ASF dual-hosted git repository.

mgubaidullin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new 9a9d6934 postgres in docker compose
9a9d6934 is described below

commit 9a9d69349cddcdc53bf5ec31ddef12f8f59557c3
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Thu Jun 11 10:11:59 2026 -0400

    postgres in docker compose
---
 docs/install/karavan-docker/docker-compose.yaml | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/docs/install/karavan-docker/docker-compose.yaml 
b/docs/install/karavan-docker/docker-compose.yaml
index 20b34ab5..43c2bd0d 100644
--- a/docs/install/karavan-docker/docker-compose.yaml
+++ b/docs/install/karavan-docker/docker-compose.yaml
@@ -28,8 +28,8 @@ services:
 
       # Database Configurations
       # Karavan requires a database (PostgreSQL here) to store application 
state.
-      - KARAVAN_DATASOURCE_USERNAME= # Database username
-      - KARAVAN_DATASOURCE_PASSWORD= # Database password
+      - KARAVAN_DATASOURCE_USERNAME=${KARAVAN_DATASOURCE_USERNAME} # Database 
username
+      - KARAVAN_DATASOURCE_PASSWORD=${KARAVAN_DATASOURCE_PASSWORD} # Database 
password
       - KARAVAN_DATASOURCE_URL=jdbc:postgresql://postgres:5432/karavan # 
Connection string for the PostgreSQL database
       - KARAVAN_DATASOURCE_SCHEMAS=public # Schema to use within the database
     volumes:
@@ -39,6 +39,20 @@ services:
     networks:
       - karavan
 
+  postgres:
+    image: postgres:18.4
+    container_name: postgres
+    environment:
+      POSTGRES_USER: ${KARAVAN_DATASOURCE_USERNAME}
+      POSTGRES_PASSWORD: ${KARAVAN_DATASOURCE_PASSWORD}
+      POSTGRES_DB: karavan
+    ports:
+      - "5432:5432"
+    networks:
+      - karavan
+    volumes:
+      - ./postgres-data:/var/lib/postgresql/data
+
   registry:
     container_name: registry
     image: registry:2

Reply via email to