version: '2.4'
services:
messaging:
image: apache/activemq-artemis:2.41.0-alpine
container_name: messaging
mem_limit: 2g
ports:
- "61616:61616" # Core Messaging Port
- "8161:8161" # Management Console (Artemis Web UI)
environment:
- ARTEMIS_USER=artemis
- ARTEMIS_PASSWORD=artemis
# EXTRA_ARGS allows the web console to be accessed from outside the container
- EXTRA_ARGS=--http-host 0.0.0.0 --relax-jolokia
# volumes:
# Persists all configurations and message queues to your host
# - ./data/messaging:/var/lib/artemis-instance
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "61616"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
networks:
- twc-net
networks:
twc-net:
external: true
SHELL