{
  "manifest_version": "1.0.0",
  "template": {
    "id": "68ce2444-252e-4c53-9d96-bc344b8f68a0",
    "slug": "htmxspringthymeleafmysql",
    "name": "HTMX+Spring+Thymeleaf+MySQL",
    "description": "HTMX + Spring + Thymeleaf + MySQL. Full-stack server-rendered app.",
    "url": "https://railway.com/deploy/htmxspringthymeleafmysql"
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "web",
      "source": {
        "repo": "https://github.com/atoolz/railway-htmx-java-spring-thymeleaf-mysql"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "private hostname on Railway’s internal network for other services in the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "leave empty for default 3306, or set an explicit port",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "database login (often root); align with your image/plugin bootstrap user",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "in-cluster mysql:// URL; web service uses ${{MySQL.MYSQL_URL}} as DATABASE_URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "plugin-style alias for the database name (no underscore)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "password for MYSQLUSER (typically the same as root in one-click templates)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "logical database/schema name created on first init",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQL_PUBLIC_URL",
      "service": "MySQL",
      "description": "mysql:// via Railway TCP proxy for clients outside the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "generated secret at provision; never commit real values to git",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_URL",
      "service": "web",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "htmxspringthymeleafmysql"
      }
    },
    "cli": "railway deploy --template htmxspringthymeleafmysql",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "68ce2444-252e-4c53-9d96-bc344b8f68a0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "07fe774c-a97a-4c21-950a-5dd327b711f0": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "private hostname on Railway’s internal network for other services in the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "leave empty for default 3306, or set an explicit port",
                      "defaultValue": "{{MYSQLPORT}}"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "database login (often root); align with your image/plugin bootstrap user",
                      "defaultValue": "{{MYSQLUSER}}"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "in-cluster mysql:// URL; web service uses ${{MySQL.MYSQL_URL}} as DATABASE_URL",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "plugin-style alias for the database name (no underscore)",
                      "defaultValue": "${{MYSQL_DATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "password for MYSQLUSER (typically the same as root in one-click templates)",
                      "defaultValue": "${{MYSQL_ROOT_PASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "logical database/schema name created on first init",
                      "defaultValue": "{{MYSQL_DATABASE}}"
                    },
                    "MYSQL_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "mysql:// via Railway TCP proxy for clients outside the private network",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{MYSQL_DATABASE}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "generated secret at provision; never commit real values to git",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "07fe774c-a97a-4c21-950a-5dd327b711f0": {
                      "mountPath": "/var/lib/mysql"
                    }
                  },
                  "haTemplateCode": "mysql-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "MySQL Replicas",
                      "options": [
                        2,
                        4,
                        6,
                        8
                      ],
                      "nodeLabel": "MySQL",
                      "description": "Requires odd count for quorum",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your MySQL instance to an HA cluster with Group Replication failover and HAProxy routing to the primary.",
                    "supportedImageMajorVersions": [
                      8,
                      9
                    ]
                  }
                },
                "da35b182-1249-4c2f-9537-d4eb02708b80": {
                  "icon": "https://raw.githubusercontent.com/atoolz/railway-htmx-java-spring-thymeleaf-mysql/master/assets/icon.png",
                  "name": "web",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/atoolz/railway-htmx-java-spring-thymeleaf-mysql",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "${{MySQL.MYSQL_URL}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T10:14:42.516Z",
  "generator_version": "0.1.0"
}
