Skip to Content Skip to Search

module Rails::Generators::Database::MariaDB

Public instance methods

Source code GitHub
# File railties/lib/rails/generators/database.rb, line 50
def name
  "mariadb"
end
Source code GitHub
# File railties/lib/rails/generators/database.rb, line 54
def port
  3306
end
Source code 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

Definition files