{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7dbe091f-d291-49a5-acbb-7edbb87ae2e7",
    "slug": "microsoftsql-server-mssql",
    "name": "MicrosoftSQL Server (MSSQL)",
    "description": "Deploy a MicrosoftSQL Server (MSSQL) on Railway!",
    "url": "https://railway.com/deploy/microsoftsql-server-mssql",
    "upstream": {
      "repo_url": "https://github.com/ThallesP/microsoft-sql-server"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "MicrosoftSQL Server",
      "source": {
        "repo": "https://github.com/ThallesP/microsoft-sql-server"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/opt/mssql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MSSQL_PID",
      "service": "MicrosoftSQL Server",
      "description": "SQL Server license to use. Must be one of: 'Evaluation' (180-day trial), 'Developer' (testing/staging only), 'Express' (free, limited), 'Web' (paid web hosting), 'Standard' (paid production), 'Enterprise' (paid legacy Server+CAL), 'EnterpriseCore' (paid enterprise), or a 25-character product key.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ACCEPT_EULA",
      "service": "MicrosoftSQL Server",
      "description": "Required by the Microsoft SQL Server container. Must be 'Y' to accept the SQL Server license terms.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SA_PASSWORD",
      "service": "MicrosoftSQL Server",
      "description": "Deprecated alias for MSSQL_SA_PASSWORD. Keep this set to the same value for compatibility with older SQL Server container behavior.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MSSQL_VERSION",
      "service": "MicrosoftSQL Server",
      "description": "SQL Server major version to build (for example: '2025', '2022', or '2019').",
      "secret": false,
      "strategy": "default",
      "default": "2025"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "MicrosoftSQL Server",
      "description": "Runs the container as root so the startup script can fix ownership/permissions in /var/opt/mssql before launching SQL Server.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "MSSQL_SA_PASSWORD",
      "service": "MicrosoftSQL Server",
      "description": "Password for the SQL Server 'sa' administrator account. Must be at least 8 characters and include characters from at least 3 of these groups: uppercase letters, lowercase letters, numbers, and symbols.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "microsoftsql-server-mssql"
      }
    },
    "cli": "railway deploy --template microsoftsql-server-mssql",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7dbe091f-d291-49a5-acbb-7edbb87ae2e7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "242587e3-4f08-4d17-bd56-bfd045e1f4d6": {
                  "icon": "https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/microsoftsqlserver/microsoftsqlserver-plain.svg",
                  "name": "MicrosoftSQL Server",
                  "deploy": {
                    "startCommand": "/opt/mssql/bin/sqlservr -T1800",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/ThallesP/microsoft-sql-server",
                    "rootDirectory": null
                  },
                  "variables": {
                    "MSSQL_PID": {
                      "isOptional": false,
                      "description": "SQL Server license to use. Must be one of: 'Evaluation' (180-day trial), 'Developer' (testing/staging only), 'Express' (free, limited), 'Web' (paid web hosting), 'Standard' (paid production), 'Enterprise' (paid legacy Server+CAL), 'EnterpriseCore' (paid enterprise), or a 25-character product key.",
                      "defaultValue": "{{MSSQL_PID}}"
                    },
                    "ACCEPT_EULA": {
                      "isOptional": false,
                      "description": "Required by the Microsoft SQL Server container. Must be 'Y' to accept the SQL Server license terms.",
                      "defaultValue": "{{ACCEPT_EULA}}"
                    },
                    "SA_PASSWORD": {
                      "isOptional": false,
                      "description": "Deprecated alias for MSSQL_SA_PASSWORD. Keep this set to the same value for compatibility with older SQL Server container behavior.",
                      "defaultValue": "${{MSSQL_SA_PASSWORD}}"
                    },
                    "MSSQL_VERSION": {
                      "isOptional": false,
                      "description": "SQL Server major version to build (for example: '2025', '2022', or '2019').",
                      "defaultValue": "2025"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Runs the container as root so the startup script can fix ownership/permissions in /var/opt/mssql before launching SQL Server.",
                      "defaultValue": "0"
                    },
                    "MSSQL_SA_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the SQL Server 'sa' administrator account. Must be at least 8 characters and include characters from at least 3 of these groups: uppercase letters, lowercase letters, numbers, and symbols.",
                      "defaultValue": "{{MSSQL_SA_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "242587e3-4f08-4d17-bd56-bfd045e1f4d6": {
                      "mountPath": "/var/opt/mssql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0"
}
