Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
/ sda-mq Public archive
forked from jbygdell/LocalEGA-mq

NeIC SDA internal message broker in a docker image

License

Notifications You must be signed in to change notification settings

neicnordic/sda-mq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archival notice

⚠️ This repository is no longer maintained. The code has been integrated and it is further developed at: https://github.com/neicnordic/sensitive-data-archive

NeIC SDA internal message broker in a docker image

We use RabbitMQ 3.8.16 including the management plugins.

Configuration

The following environment variables can be used to configure the broker:

Variable Description
MQ_VHOST Default vhost other than /
MQ_USER Default user (with admin rights)
MQ_PASSWORD_HASH Password hash for the above user
CEGA_CONNECTION DSN URL for the shovels and federated queues with CentralEGA
MQ_SERVER_CERT Path to the server SSL certificate
MQ_SERVER_KEY Path to the server SSL key
MQ_CA Path to the CA root certificate
MQ_VERIFY Require the clients to have valid TLS certificates (verify_peer) or do not require clients to have certificates (verify_none)
NOTLS Run the server without TLS enabled (default is to run the server with TLS activated)

If you want persistent data, you can use a named volume or a bind-mount and make it point to /var/lib/rabbitmq.

Sample Docker Compose definition

version: '3.3'

services:

  mq:
    image: egarchive/lega-mq:latest
    hostname: mq
    ports:
      - "5672:5672"
      - "15672:15672"
    environment:
      - MQ_VHOST=vhost
      - MQ_USER=admin
      - MQ_PASSWORD_HASH=4tHURqDiZzypw0NTvoHhpn8/MMgONWonWxgRZ4NXgR8nZRBz
      - NOTLS=true
      - CEGA_CONNECTION

Run docker-compose up -d to test it.

About

NeIC SDA internal message broker in a docker image

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Shell 93.9%
  • Dockerfile 6.1%