Files
crmdesk/deploy/docker/compose/compose-artemis.yaml
T
2026-09-19 16:35:35 +08:00

37 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ActiveMQ Artemis 消息队列(二选一:artemis / rabbitmq
# 启动方式:./start.sh artemis ... 或 docker compose --env-file .env -f compose/compose-artemis.yaml up -d(在 deploy/docker 目录执行)
# http://localhost:18161/console,使用 .env 中 ARTEMIS_USER/ARTEMIS_PASSWORD 登录
services:
bytedesk-artemis:
image: apache/activemq-artemis:2.40.0
container_name: artemis-bytedesk
environment:
- ARTEMIS_USER=${ARTEMIS_USER}
- ARTEMIS_PASSWORD=${ARTEMIS_PASSWORD}
- ANONYMOUS_LOGIN=false
- EXTRA_ARGS=--http-host 0.0.0.0 --relax-jolokia
ports:
- "16161:61616" # JMS
- "16162:61617" # AMQP
- "18161:8161" # Web Console
- "15672:5672" # AMQP
- "16163:61613" # STOMP
- "11883:1883" # MQTT
volumes:
- artemis_data:/var/lib/artemis/data
networks:
- bytedesk-network
healthcheck:
test: ["CMD-SHELL", "curl --fail -u ${ARTEMIS_USER}:${ARTEMIS_PASSWORD} http://localhost:8161/console/jolokia/ >/dev/null"]
interval: 30s
timeout: 10s
retries: 5
volumes:
artemis_data:
name: bytedesk_artemis_data
networks:
bytedesk-network:
driver: bridge