Sha256: 101c2431de8b2dafc9771189eeb8bd0c0b2506a1d832a9797f576b09126ddb4c
Contents?: true
Size: 629 Bytes
Versions: 23
Compression:
Stored size: 629 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' }.merge(ports) end def ports return {} unless %i[development test].include?(@environment) container_port = Orchestration::Services::RabbitMQ::PORT { 'ports' => ["#{sidecar_port(@environment)}#{container_port}"] } end end end end
Version data entries
23 entries across 23 versions & 1 rubygems