Skip to content

Create queues on startup and persist data #1142

@markand911

Description

@markand911

I followed the documentation of elasticmq to run aws sqs service locally.
I want to create queues on startup also persist queue messages.
I created a config file

include classpath("application.conf")

node-address {
    protocol = "http"
    host = "*"
    port = 9324
    context-path = ""
}

messages-storage {
  enabled = true
}

rest-sqs {
    enabled = true
    bind-port = 9324
    bind-hostname = "0.0.0.0"
    sqs-limits = strict
}

queues {
    triggerCorrespondenceQueue {
        visibility-timeout = 300 seconds
        message-retention-period = 14 days
        delay = 0 seconds
        max-message-size = 262144 bytes
        receive-message-wait-time-seconds = 0 seconds
    }        
}

And docker-compose file

services:
  sqs:
    image: softwaremill/elasticmq
    container_name: elasticmq-sqs
    ports:
      - "9324:9324"           
      - "9325:9325"
    volumes:
      - ./elasticmq.conf:/etc/elasticmq.conf
      - /data:/data softwaremill/elasticmq

However, when i start the container, I see no queues created.
Am i missing anything?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions