方法
实例公共方法
name() 链接
来源: 显示 | 在 GitHub 上
# File railties/lib/rails/generators/database.rb, line 50 def name "mariadb" end
port() 链接
来源: 显示 | 在 GitHub 上
# File railties/lib/rails/generators/database.rb, line 54 def port 3306 end
service() 链接
来源: 显示 | 在 GitHub 上
# 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