docker-compose.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. version: "3.9"
  2. services:
  3. mq1:
  4. image: lianshufeng/activemq:artemis
  5. ports:
  6. - "8161:8161"
  7. - "61616:61616"
  8. - "1883:1883"
  9. environment:
  10. - Broker_User=${Broker_User}
  11. - Broker_Password=${Broker_Password}
  12. - Broker_Role=${admins}
  13. volumes:
  14. - ./broker1:/opt/broker
  15. container_name: mq1
  16. restart: always
  17. hostname: mq1
  18. mq2:
  19. image: lianshufeng/activemq:artemis
  20. ports:
  21. - "8162:8161"
  22. - "61626:61616"
  23. - "1884:1883"
  24. environment:
  25. - Broker_User=${Broker_User}
  26. - Broker_Password=${Broker_Password}
  27. - Broker_Role=${admins}
  28. volumes:
  29. - ./broker2:/opt/broker
  30. container_name: mq2
  31. restart: always
  32. hostname: mq2
  33. mq3:
  34. image: lianshufeng/activemq:artemis
  35. ports:
  36. - "8163:8161"
  37. - "61636:61616"
  38. - "1885:1883"
  39. environment:
  40. - Broker_User=${Broker_User}
  41. - Broker_Password=${Broker_Password}
  42. - Broker_Role=${admins}
  43. volumes:
  44. - ./broker3:/opt/broker
  45. container_name: mq3
  46. restart: always
  47. hostname: mq3