class Pygmy::Haproxy
Public Class Methods
container_name()
click to toggle source
# File lib/pygmy/haproxy.rb, line 11 def self.container_name 'amazeeio-haproxy' end
image_name()
click to toggle source
# File lib/pygmy/haproxy.rb, line 7 def self.image_name 'oceanic/amazeeio-haproxy' end
run_cmd()
click to toggle source
# File lib/pygmy/haproxy.rb, line 15 def self.run_cmd "docker run -d " \ "-p 80:80 -p 443:443 " \ "--volume=/var/run/docker.sock:/tmp/docker.sock " \ "--restart=always " \ "--name=#{Shellwords.escape(self.container_name)} " \ "#{Shellwords.escape(self.image_name)}" end