I think this is it. PianoTell is ready to graduate to new hosting.
I created pianotell-primary-01 on Hetzner Cloud on Friday. Hetzner is beyond amazing as a hosting service and have exceeded my expectations. Iโm very impressed by how fast and easy everything is. Linux on ARM64 is a dream.
I installed Docker and pulled down the new pianotell-* containers and everything just worked! Mostly.
For one, the networking is less strange than on Mac, but that meant I needed to make some changes to accommodate Cloudflare. I built a new Caddy with Cloudflare support and thatโs all working now. For cloudbackup, I had to refresh some tokens, but thatโs not too unexpected.
The primary issue that caused me the most distress is the security model between the host and the containers. This isnโt evident on Mac because it only hosts the containers indirectly via Linux on VM.
Without Mac in the picture, the containers appear to be much less isolated from the host than I had expected. The root user in the container appears to have many similar privileges to root in the host. So I invested quite a bit of time in terms of fixing ownerships, privileges, and such. Itโs mostly an incomplete patch job, with the real solution being to run Docker in rootless mode. Unfortunately, that is exactly the kind of custom work I was trying to avoid on the host in the first place โ Docker should just install that way by default.
Iโll live.
All of that was before I could even get to what I thought would be my primary task this weekend โ configure the Hetzner firewall so that only Cloudflare can proxy the traffic. Fortunately, this was very easy to do.
And thatโs it! Iโve been running a test version of PianoTell on Hetzner Cloud since Friday and itโs been great!
I still have to decide when Iโll make the switch. Ideally, it would have been at the beginning of the weekend rather than the end.
When ready, I will take down PianoTell for about an hour with a redirect message. This is to allow all traffic to drain and make sure I have the latest copy of the database. Then Iโll update Cloudflare so that the new server starts taking traffic.
And hopefully that will be it!