version: '2' services: rabbitmq: hostname: rabbitmq environment: RABBITMQ_DEFAULT_VHOST: "root" RABBITMQ_DEFAULT_USER: "root" RABBITMQ_DEFAULT_PASS: "123456" image: "rabbitmq:3.7.16-management" restart: always volumes: - "/docker/rabbitmq/data:/var/lib/rabbitmq" - "/docker/rabbitmq/log:/var/log/rabbitmq/log" ports: - "15672:15672" - "4369:4369" - "5672:5672" - "25672:25672"