跳到内容 跳到搜索
方法
N
P
S

实例公共方法

name()

# File railties/lib/rails/generators/database.rb, line 50
def name
  "mariadb"
end

port()

# File railties/lib/rails/generators/database.rb, line 54
def port
  3306
end

service()

# File railties/lib/rails/generators/database.rb, line 58
def service
  {
    "image" => "mariadb:10.5",
    "restart" => "unless-stopped",
    "networks" => ["default"],
    "volumes" => ["mariadb-data:/var/lib/mysql"],
    "environment" => {
      "MARIADB_ALLOW_EMPTY_ROOT_PASSWORD" => "true",
    },
  }
end