docker-compose.yml 428 B

1234567891011121314151617
  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. environment:
  10. # RABBITMQ_DEFAULT_USER: rabbit
  11. # RABBITMQ_DEFAULT_PASS: carrot
  12. RABBITMQ_HIPE_COMPILE: 1
  13. volumes:
  14. - ./rabbitmq-data:/var/lib/rabbitmq
  15. # data will be stored in /var/lib/rabbitmq/mnesia/rabbit@HOSTNAME