Sha256: d3d4e2ae4558497e99722bf817794fc96ffd61b39d4e0e7f2a8c244615305690
Contents?: true
Size: 576 Bytes
Versions: 6
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module Orchestration module DockerCompose class HAProxyService def initialize(config, environment) @environment = environment @config = config end def definition { 'deploy' => { 'placement' => { 'constraints' => ['node.role == manager'] } }, 'image' => 'dockercloud/haproxy', 'ports' => %w[${LISTEN_PORT}:80], 'volumes' => [ '/var/run/docker.sock:/var/run/docker.sock:ro' ] } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems