Yozgat::Deploy::Docker
Class methods
Container names belonging to a compose project (compose auto-generates
<project>-<service>-<n> names that yozgat does not control).
compose_down(base_dir : String, project_dir : String, compose_path : String, use_env_file : Bool = false, project_name : String | Nil = nil) : Nil
SourceDeployment-scoped docker compose project name. Every repo is cloned into
a dir literally named "repo", so without this docker compose would derive
the project name "repo" for EVERY deployment — colliding containers,
images and compose down scope across projects.
compose_up(base_dir : String, project_dir : String, compose_path : String, log_path : String, build : Bool = false, use_env_file : Bool = false, project_name : String | Nil = nil) : Bool
Sourcecontainer_run(base_dir : String, image : String, name : String, log_path : String, host_port : Int64 | Nil = nil, container_port : Int64 | Nil = nil, env_file : String | Nil = nil, network : String | Nil = nil, labels : Array(String) = [] of String) : Bool
Sourcedocker_available?
Source