version: '3' services: rabbitmq: image: rabbitmq:management container_name: mq restart: unless-stopped environment: - RABBITMQ_DEFAULT_USER=mqadmin - RABBITMQ_DEFAULT_PASS=3Mnj29jKBsFybc # - RABBITMQ_SSL_CERTFILE=/cert_rabbitmq/testca/cacert.pem # - RABBITMQ_SSL_KEYFILE=/cert_rabbitmq/server/cert.pem # - RABBITMQ_SSL_CACERTFILE=/cert_rabbitmq/server/key.pem ports: # The standard AMQP protocol port - '5672:5672' # HTTP management UI - '15672:15672' volumes: - ./demo/pyapp/queue/data/:/var/lib/rabbitmq/ - ./demo/pyapp/queue/log/:/var/log/rabbitmq/ - ./data:/var/lib/rabbitmq/ # - ./certs/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro # - ./certs/root.crt:/etc/ssl/rmq-cacert.pem:ro # - ./certs/server.crt:/etc/ssl/rmq-cert.pem:ro # - ./certs/server.key:/etc/ssl/rmq-key.pem:ro networks: - ametiq networks: ametiq: external: true