HackerTrans
TopNewTrendsCommentsPastAskShowJobs

mightymoud

no profile record

Submissions

Show HN: A CLI tool I made to self-host any app with two commands on a VPS

github.com
452 points·by mightymoud·2 anni fa·152 comments

comments

mightymoud
·2 anni fa·discuss
[dead]
mightymoud
·2 anni fa·discuss
Planweb looks really promising. Keen to get in touch and see how I can help support the vision of Plainweb with Sidekick then you can reference it in the docs.

I'll reach out on twitter
mightymoud
·2 anni fa·discuss
[dead]
mightymoud
·2 anni fa·discuss
[dead]
mightymoud
·2 anni fa·discuss
[dead]
mightymoud
·2 anni fa·discuss
I wrote a intro guide to pterm and cobra-cli here https://mightytuts.com/blog/golang-cli-introduction-with-cob... I also have a video on YT if that is your thing
mightymoud
·2 anni fa·discuss
No Sidekick doesn't use firecracker. I know fly.io is built around it yes. They do that so they can put your app to sleep - basically shutting it down - then spin it up real quick when it gets a request. No place for this in Sidekick vision
mightymoud
·2 anni fa·discuss
It's a tunnel. So VPS can only be reached through cloudflare. It's not only for https, but more for security and lockdown
mightymoud
·2 anni fa·discuss
Interesting setup....

How do you run the containers on your VPS tho? You could still use Sidekick for that!

I think your setup is one step up in security from Sidekick nonetheless. A lot more work it seems too
mightymoud
·2 anni fa·discuss
Yup deploy hooks are on my mind. Just didn't put them on Readme. Shouldn't be very hard to implement. Might do this first before docker-compose support.
mightymoud
·2 anni fa·discuss
1) Kamal is more geared towards having one VPS for project - it' made for big projects really. They also show on the demo that even the db is hosted on its own VPS. Which is great! But not for me or Sidekick target audience. Kamal V2 will support multi-projects on a single VPS afaik

2) yes yes yes! I really like litestream. Also backup is one of those critical but annoying thing that Sidekick is meant to take care of for you. I'll look into Bearman. My vision is like we would have one command for most popular db types and it would use stubs to configure everything the right way. Need to sort out docker-compose support first though...
mightymoud
·2 anni fa·discuss
Locally here means the locally on your laptop locally, not locally on your VPS. Contrary to popular opinion, I believe your source code shouldn't be on your prod machine - a docker image is all you need. Lots of other projects push your code to VPS to build the image there then use it. I see no point in doing that...
mightymoud
·2 anni fa·discuss
hahah seems like we went down the same rabbit hole. I also considered `docker-rollout` but decided to write my own script. Heavily inspired by the docker-rollout source code btw. Just curious, why did you decide to go with docker plugins?
mightymoud
·2 anni fa·discuss
Thanks man! I'm working on the docker-compose support. I got it working locally, but the ergonomics are really hard to get right, cus compose files are so flexible. I was even considering using the `sidekick.yaml` file as the main config and then turn that into docker compose - similar to what fly.io does with fly.toml. But I wanna keep this docker centric... so yeah I am still doing more thinking around this
mightymoud
·2 anni fa·discuss
Sounds like you have a great setup. My vision is to make a setup like yours more accessible really w/o having to play with low level config like ansible. I think you should try to replace nginx with Traefik - it handles certs out of the box!
mightymoud
·2 anni fa·discuss
Correct me if I'm wrong, Docker Swarm mode is made to manage multi node clusters. This is meant for only one single VPS.
mightymoud
·2 anni fa·discuss
Thanks! This comment really makes my day!
mightymoud
·2 anni fa·discuss
Respect! Fly is an absolute beast and to me is best in class for sure!
mightymoud
·2 anni fa·discuss
I think this is just miscommunication - I meant more in a side-project/application that you made yourself. Not an application package you install on ubuntu
mightymoud
·2 anni fa·discuss
Glad you found this useful. Let me know if you have specific features in mind.