Sha256: 71a077149d478ee89a04bdf87943eee4dd8791072fe6b81a98e992e982a7d2bb
Contents?: true
Size: 790 Bytes
Versions: 7
Compression:
Stored size: 790 Bytes
Contents
# frozen_string_literal: true module Orchestration module DockerCompose class RabbitMQService include ComposeHelpers def initialize(config, environment) @config = config @environment = environment end def definition return nil unless @config.enabled? { 'image' => 'library/rabbitmq:management' }.merge(ports) end def ports return {} unless %i[development test].include?(@environment) container_port = Orchestration::Services::RabbitMQ::PORT management_port = Orchestration::Services::RabbitMQ::MANAGEMENT_PORT { 'ports' => ["#{sidecar_port(@environment)}#{container_port}", "#{sidecar_port(@environment)}#{management_port}"] } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems