Thank you very much for posting your ERDDAP-On-Synology-NAS installation tips so others can benefit from them.
This is an interesting way to get a small server with a ton of disk space for a super low price.
Such a device might be of interest for personal use, for development, for backup, or for use in places where there is limited or no internet connectivity, e.g., on a ship or in a remote place.
A Synology NAS is basically a small, inexpensive (starting at ~$300) computer that uses Linux on an Arm processor, with 2-12 disk drive bays, packaged and sold as a NAS.
Since hard drives can now have 12TB for ~$350, you can build a 4 bay server with 48TB for about $1700.
Since it is Linux, you can (as Ricardo has done here) install Ubuntu (or other Linux distributions) in a virtual machine (so you aren't messing around with the NAS software). Search the web for instructions.
Then you can install Apache and Tomcat, and then ERDDAP.
While the drives are pretty fast, the server is not, so this is no match for a proper server with a RAID, but it comes at a fraction of the cost of what data centers typically pay for servers.
As Ricardo's experience points out, the ERDDAP installation instructions are geared toward installing ERDDAP on a Linux server (for public use) or on Windows (for private use). But in different situations, there are often little quirks to the Apache and Tomcat installation process. The best solution is to search Google or Duck Duck Go for solutions, since someone else has probably faced the same problem before.
Replies to Ricardo's comments:
* I am also surprised that you had to separately install Apache -- I thought it was included with Ubuntu.
* You only need to create and use user=tomcat if you are making a public server. Then, if a hacker somehow finds a way to abuse ERDDAP and act (partly) as user=tomcat, they won't be able to do much. I don't know the details of Ricardo's setup to know if this is needed here or not.
* Yes, you only need to set up the ProxyPass if you are making a public server. I just use port :8080 when accessing my development ERDDAP on my PC.
* I'm very impressed that you did the whole project in ~5 hours.
Best wishes.