docker-compose.yml 450 B

123456789101112131415161718
  1. version: "2"
  2. services:
  3. rabbit:
  4. image: rabbitmq:3.7-alpine
  5. ports:
  6. - "5672:5672"
  7. # persistent data needs a consistent hostname
  8. hostname: crunchy_carrot
  9. user: "1000:1000"
  10. environment:
  11. # RABBITMQ_DEFAULT_USER: rabbit
  12. # RABBITMQ_DEFAULT_PASS: carrot
  13. RABBITMQ_HIPE_COMPILE: 1
  14. volumes:
  15. - ./rabbitmq-data:/var/lib/rabbitmq
  16. # data will be stored in /var/lib/rabbitmq/mnesia/rabbit@HOSTNAME