Methods

Instance Public methods

name()

📝 Source code
# File railties/lib/rails/generators/database.rb, line 50
        def name
          "mariadb"
        end
🔎 See on GitHub

port()

📝 Source code
# File railties/lib/rails/generators/database.rb, line 54
        def port
          3306
        end
🔎 See on GitHub

service()

📝 Source code
# 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
🔎 See on GitHub