diff --git a/docker-compose.yml b/docker-compose.yml index 33ecbda..c8f4b64 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,73 +54,12 @@ services: - frontend volumes: - activemq-data:/var/lib/artemis-instance - karavan: - container_name: karavan - image: ghcr.io/apache/camel-karavan:4.10.2 - restart: unless-stopped - environment: - - KARAVAN_GIT_REPOSITORY=http://gitea:3000/karavan/karavan.git - - KARAVAN_GIT_USERNAME=tpeetz - - KARAVAN_GIT_PASSWORD=04ibtp-0121AWS42 - - KARAVAN_GIT_BRANCH=main - - KARAVAN_CONTAINER_IMAGE_REGISTRY=registry:5000 - - KARAVAN_CONTAINER_IMAGE_REGISTRY_USERNAME= - - KARAVAN_CONTAINER_IMAGE_REGISTRY_PASSWORD= - - KARAVAN_GIT_INSTALL_GITEA=true - - KARAVAN_CONTAINER_IMAGE_REGISTRY=registry:5000 - - KARAVAN_CONTAINER_IMAGE_GROUP=karavan - - KARAVAN_DOCKER_NETWORK=karavan - ports: - - 8880:8080 - networks: - - karavan - - database - - integration - - frontend - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - /home/tpeetz/.m2:/opt/.m2 - labels: - - "org.apache.camel.karavan/type=internal" - depends_on: - gitea: - condition: service_healthy - restart: true - registry: - container_name: registry - image: registry:2 - restart: always - ports: - - 5555:5000 - labels: - - "org.apache.camel.karavan/type=internal" - networks: - - karavan - gitea: - container_name: gitea - image: gitea/gitea:1.21.6-rootless - restart: always - ports: - - "4000:3000" - volumes: - - gitea-data:/var/lib/gitea - - gitea-config:/etc/gitea - healthcheck: - test: ["CMD", "curl", "-f", "http://gitea:3000/api/healthz"] - interval: 1m - timeout: 10s - retries: 3 - start_period: 10s - labels: - - "org.apache.camel.karavan/type=internal" - networks: - - karavan - - frontend kontor: image: kontor:0.2.0-SNAPSHOT restart: unless-stopped networks: - database + - integration - frontend ports: - 8000:8000 @@ -134,6 +73,7 @@ services: restart: unless-stopped networks: - database + - integration - frontend ports: - 8800:8800 @@ -145,15 +85,12 @@ services: networks: database: integration: - karavan: - name: karavan + name: integration frontend: volumes: postgres-data: couchdb-data: activemq-data: - gitea-data: - gitea-config: images-data: secrets: db-password: diff --git a/kontor-spring/build.gradle b/kontor-spring/build.gradle index bca62b7..b2b70f4 100644 --- a/kontor-spring/build.gradle +++ b/kontor-spring/build.gradle @@ -59,8 +59,9 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.apache.camel.springboot:camel-spring-boot-starter' - implementation 'org.apache.activemq:artemis-jakarta-client' implementation 'org.apache.camel.springboot:camel-jms-starter' + implementation 'org.apache.activemq:artemis-jakarta-client' + //implementation libs.artemis implementation 'org.springframework.boot:spring-boot-starter-actuator' developmentOnly 'org.springframework.boot:spring-boot-devtools' implementation 'io.micrometer:micrometer-registry-prometheus' diff --git a/kontor-spring/gradle/libs.versions.toml b/kontor-spring/gradle/libs.versions.toml index c4e75f8..1f68ea3 100644 --- a/kontor-spring/gradle/libs.versions.toml +++ b/kontor-spring/gradle/libs.versions.toml @@ -20,6 +20,7 @@ springboot = "3.2.5" springdependencies = "1.1.4" vaadin = "24.3.8" camel = "4.10.6" +artemis = "2.41.0" lombok = "8.6" gson = "2.9.0" jackson = "2.16.1" @@ -45,6 +46,7 @@ sqlite-jdbc = { module = "org.xerial:sqlite-jdbc", version.ref = "sqlite" } hypersistence = { module = "io.hypersistence:hypersistence-utils-hibernate-63", version.ref = "hypersistence" } vaadin-bom = { module = "com.vaadin:vaadin-bom", version.ref = "vaadin" } camel-bom = { module = "org.apache.camel.springboot:camel-spring-boot-bom", version.ref = "camel"} +artemis = { module = "org.apache.activemq:artemis-jms-server", version.ref = "artemis" } asciidoctorGradleJvmGems = { module = "org.asciidoctor:asciidoctor-gradle-jvm-gems", version.ref= "asciidoctor" } asciidoctorGradleJvm = { module = "org.asciidoctor:asciidoctor-gradle-jvm", version.ref= "asciidoctor" } asciidoctorGradleJvmPdf = { module = "org.asciidoctor:asciidoctor-gradle-jvm-pdf", version.ref= "asciidoctor" } diff --git a/kontor-spring/src/main/resources/application.yml b/kontor-spring/src/main/resources/application.yml index cf0dd2d..44269d2 100644 --- a/kontor-spring/src/main/resources/application.yml +++ b/kontor-spring/src/main/resources/application.yml @@ -24,12 +24,6 @@ spring: multipart: max-file-size: 10MB max-request-size: 10MB - artemis: - mode: native - host: 127.0.0.1 - port: 61616 - user: artemis - password: artemis camel: cloud: enabled: true @@ -56,6 +50,10 @@ logging: hibernate: INFO springframework: web: INFO + jms: DEBUG + apache: + activemq: + artemis: DEBUG guru: springframework: controllers: DEBUG @@ -78,6 +76,11 @@ spring: url: jdbc:postgresql://postgres:5432/kontor username: 'kontor' password: 'kontor' + artemis: + mode: native + broker-url: tcp://activemq:61616 + user: artemis + password: artemis server: port: 8000 --- @@ -91,5 +94,10 @@ spring: url: jdbc:postgresql://localhost:5432/kontor username: kontor password: kontor + artemis: + mode: native + broker-url: tcp://localhost:61616 + user: artemis + password: artemis server: port: 8085