Skip to content

Instantly share code, notes, and snippets.

@an01f01
Last active February 26, 2025 22:10

Revisions

  1. an01f01 revised this gist Feb 26, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Dockerfile
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    FROM rabbitmq:latest

    # Set environment variables for configuration
    ENV RABBITMQ_DEFAULT_USER=test
    ENV RABBITMQ_DEFAULT_USER=utest
    ENV RABBITMQ_DEFAULT_PASS=test1234

    # Add labels for better maintainability
  2. an01f01 revised this gist Feb 26, 2025. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -2,14 +2,15 @@
    FROM rabbitmq:latest

    # Set environment variables for configuration
    ENV RABBITMQ_DEFAULT_USER=$RABBIT_USER
    ENV RABBITMQ_DEFAULT_PASS=$RABBIT_PWD
    ENV RABBITMQ_DEFAULT_USER=test
    ENV RABBITMQ_DEFAULT_PASS=test1234

    # Add labels for better maintainability
    LABEL version="1.0"
    LABEL description="Dockerfile for running RabbitMQ"

    RUN rabbitmq-plugins enable rabbitmq_mqtt
    RUN rabbitmq-plugins enable rabbitmq_management

    # Expose the default RabbitMQ port
    EXPOSE 1883 5672 15672
  3. an01f01 revised this gist Feb 17, 2025. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@
    FROM rabbitmq:latest

    # Set environment variables for configuration
    ENV RABBITMQ_DEFAULT_USER=kaprs
    ENV RABBITMQ_DEFAULT_PASS=kaprs
    ENV RABBITMQ_DEFAULT_USER=$RABBIT_USER
    ENV RABBITMQ_DEFAULT_PASS=$RABBIT_PWD

    # Add labels for better maintainability
    LABEL version="1.0"
  4. an01f01 created this gist Feb 17, 2025.
    18 changes: 18 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    # Use the official RabbitMQ image as the base image
    FROM rabbitmq:latest

    # Set environment variables for configuration
    ENV RABBITMQ_DEFAULT_USER=kaprs
    ENV RABBITMQ_DEFAULT_PASS=kaprs

    # Add labels for better maintainability
    LABEL version="1.0"
    LABEL description="Dockerfile for running RabbitMQ"

    RUN rabbitmq-plugins enable rabbitmq_mqtt

    # Expose the default RabbitMQ port
    EXPOSE 1883 5672 15672

    # Start RabbitMQ server on container startup
    CMD ["rabbitmq-server"]