First
This commit is contained in:
17
lib/mrsk/commands/traefik.rb
Normal file
17
lib/mrsk/commands/traefik.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class Mrsk::Commands::Traefik
|
||||
def start
|
||||
"docker run --name traefik " +
|
||||
"--rm -d " +
|
||||
"-p 80:80 " +
|
||||
"-v /var/run/docker.sock:/var/run/docker.sock " +
|
||||
"traefik --providers.docker"
|
||||
end
|
||||
|
||||
def stop
|
||||
"docker container stop traefik"
|
||||
end
|
||||
|
||||
def info
|
||||
"docker ps --filter name=traefik"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user