37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
# 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
|