5 ms·
As someone who's working on something similar (one-man project), what I struggle the most is with the infra details. Author mentions that there's a single mach
by lmarcos 4y ago
As someone who's working on something similar (one-man project), what I struggle the most is with the infra details.
Author mentions that there's a single machine for the api, db and nginx; this means the machine is publicly accesible to everyone, and so is the db (although the port the db is running could be only accessible to localhost). I don't really feel comfortable doing that (so I force myself to out the db within a vpc).
How does the author provision the Hetzner machine? Manually? Terraform? Ansible? If something goes wrong with the single machine, how long does it take to rebuild everything from scratch? For me this is very important and I force myself to being able to rebuild everything with one or two commands (usually using Ansible).
Agree with the lack of usage of k8s. For a one-man project, it seems a bit overkill.
And finally, monitoring. After working for over a decade in the industry, I don't feel comfortable deploying stuff to production that is not monitored (e.g., Prometheus + grafana).
Ok, there's also: backups, security updates, and a whole bunch of stuff that still delays my first deployment.
- monlockandkey 4y agoCheck out https://dokku.com/ https://dokku.com/ Dokku is basically open source Heroku. Put it on a server, and then just push your application to it.
- mr90210 4y agoThanks for sharing. This tool would have saved me hours and money.
- blumomo 4y agoIf you even don’t want to host the deployment environment, upload your docker images to https://fly.io https://fly.io. It brings your services online in minutes. Ship quickly today and once you have more time you can later run your docker images on your own infra w/o much or no changes at all to your images.
- zoomzoom 4y agoThere’s a universe of tools that aim to provide simpler abstractions over infra as code these days. One of them is provided by my company, withcoherence.com. While many of the advantages such as automated per branch ephemeral environments, accrue to teams, solo builders in some ways get more leverage from infra abstractions that let them focus on their own application.
- SergeAx 4y agoHis server runs 3 containers, so it should be just a generic Linux + apt install docker, and then a docker-compose file.