amqp rabbitMQ docker-composer
rabbitMQ docker-composer.yml
version: '2.0' services: rabbit: image: rabbitmq:management container_name: rabbit hostname: rabbit restart: always ports: - 15672:15672 - 5672:5672 - 25672:25672 - 61613:61613 - 1883:1883 expose: - 15672 - 5672 - 25672 - 61613 - 1883 privileged: true environment: RABBITMQ_DEFAULT_USER: admin RABBITMQ_DEFAULT_PASS: admin
创建成功后可以通过:localhost:15672 进入控制台,使用账号密码登录