docker 启动mq 服务

mq:
        image: houlijiang/rabbitmq
        container_name: "mq"
        restart: always
        environment: 
            - TIME_ZONE=Asia/Shanghai #用户 
            - RABBITMQ_DEFAULT_USER=admin #密码 
            - RABBITMQ_DEFAULT_PASS=admin 
        volumes: 
            - /etc/localtime:/etc/localtime 
            - /etc/timezone:/etc/timezone 
            - /data/rabbitmq/db:/var/lib/rabbitmq/mnesia/rabbit@my-rabbit
        expose:
            - "15672"
            - "5672"
        ports:
            - "15672:15672"
            - "5672:5672"
        networks:
            - dev