diff --git a/README.md b/README.md index e2dc552..d3e39af 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Simple JMS application +[![Build project](https://github.com/Romanow/artemis-jms/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/Romanow/artemis-jms/actions/workflows/build.yml) +[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit) + ## Start Artemis in Docker ```shell diff --git a/docker-compose.yml b/docker-compose.yml index 8407159..1a58430 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,21 +1,20 @@ -version: "3" services: artemis: image: apache/activemq-artemis:2.35.0 environment: - ARTEMIS_USERNAME: admin - ARTEMIS_PASSWORD: admin + ARTEMIS_USER: artemis + ARTEMIS_PASSWORD: artemis ports: - "8161:8161" - "61616:61616" healthcheck: - test: [ "CMD-SHELL", "/app/artemis/bin/artemis check queue --name TEST --produce 10 --browse 10 --consume 10 --url tcp://localhost:61616 --user $$ARTEMIS_USERNAME --password $$ARTEMIS_PASSWORD" ] + test: [ "CMD-SHELL", "/var/lib/artemis-instance/bin/artemis check queue --name TEST --produce 10 --browse 10 --consume 10 --url tcp://localhost:61616 --user $$ARTEMIS_USERNAME --password $$ARTEMIS_PASSWORD" ] interval: 10s timeout: 10s retries: 5 volumes: - - artemis:/var/lib/artemis - - ./docker/:/var/lib/artemis/etc-override/ + - artemis:/var/lib/artemis-instance + - ./docker/:/var/lib/artemis-instance/etc-override volumes: artemis: