6 ms·
Deploy from local to production (self-hosted)
- barrettshepherd 2y agoWhat’s the advantage of this over Kamal? (https://kamal-deploy.org/ https://kamal-deploy.org/)
- ngrilly 2y agoI like that it's a single file executable. But Kamal offers much more, for eample zero-downtime deployment.
- oulipo 2y agoAlso Dokploy, Dokku, Coolify and similar
- ajayvk 2y agoAnother option you could consider is a tool I have been building for deploying webapps across a team. https://github.com/claceio/clace https://github.com/claceio/clace has the usual deployment related functionality like gitops, TLS certs. It has some unique features like supporting OAuth authentication for the apps, staging env for each app (code and config changes are staged before deployment), supporting declarative update, supporting hypermedia based apps natively etc.
- notpushkin 2y agoThis is so cool! The scope is a bit broad (it’s a build tool, DevOps tool and a hypermedia app framework?) – maybe you could split this into multiple projects and start a whole ecosystem? I’m also working on a deployment tool, though not nearly as ambitious – it’s just a Docker dashboard based around Compose files: https://lunni.dev/ https://lunni.dev/ (though it does everything Traefik does, and GitOps are also definitely on the roadmap)
- ajayvk 2y agoThanks. Clace is built for teams to be be able to deploy internal tools (Streamlit/Gradio etc). That use case requires some extra features (OAuth/Auditing/Declarative config etc). Kubernetes with ArgoCD plus IDP seems to have become the default solution, which is overkill for such use cases. The Hypermedia based app support was added to be able to build a management dashboard for Clace itself, without going down the SPA route. It made sense to expose that for end uses to be able to build their own apps.
- oulipo 2y agoNice! What would be the difference with Dokploy for instance?
- oulipo 2y agoNice! I'll check it :)
- indigodaddy 2y agoThis seems cool and all but it's fairly trivial to docker compose whatever stuffs/apps you want and install caddy as the reverse proxy on the host (I normally don't do caddy in a container but it might be better to) You have to setup docker compose files with airo it looks like in any case, so this just simplifies the caddy part? But caddy is so simple to begin with I'm not sure the point..
- ratorx 2y agoDoes it even configure caddy? I can’t see how the caddy config could be generated from the env.yaml (unless it relies on the directory name etc for the path). Seems like something that could have been solved with just docker compose (by setting a remote DOCKER_HOST). If you need “automatic” proxying, then traefik can do it off container labels.
- timdorr 2y agoNope, it just copies over a hand-made Caddyfile and restarts a docker container that you need to already be running: https://github.com/bypirob/airo/blob/1a827a76f2254e5ca4f4ba4fea70b8b68b94cf85/src/main.go#L126-L127 https://github.com/bypirob/airo/blob/1a827a76f2254e5ca4f4ba4... This looks extremely barebones and makes a large number of assumptions in its current state. This is better as a Show HN after some more dev work has been completed.
- notpushkin 2y agoAgreed – it’s a bit too early to publicize this. Lots of great alternatives discussed here though! Maybe I should try to Show HN my Docker dashboard, https://lunni.dev/ https://lunni.dev/ :thinking:
- globular-toast 2y agoSurprised it doesn't use caddy-docker-proxy to automatically route traffic to your compose set up. You could just do that in dev and have a very simple compose override for prod that changes the domain names etc.
- zelifcam 2y agoImagine if people just used the tools themselves instead of creating yet another layer in hopes of simplifying something that can already be done with a few lines on a bash script.
- cdfuller 2y agoAgreed. This project isn't that upfront this is a wrapper around 4 commands. Docker build, docker push, docker pull and compose up.
- morcus 2y agoFor small projects you can also add something like Watchtower to your compose file and then you need only build and push the image. And I assume you want to be building once to test your changes anyways, so you really only need to push.
- MyOutfitIsVague 2y agoWhew, you're not joking. This whole thing is 156 lines of Go. I'd probably have just used a shell script for this kind of thing.
- 0xbadcafebee 2y agoI think we can all agree that any Go program that just executes some other program, is way better than a shell script! I mean, what if you needed to change the way it worked? With bash you'd have to open a text editor, change a line, and save the file! And on top of that you need to understand shell scripting! With Go, you can set up your development environment, edit the source code, run the compiler, download the external dependencies, generate a new binary, and copy it to your server. And all this requires is learning the Go language and its development model. This is clearly more advanced, and thus better.
- indigodaddy 2y agoHaha, nice
- mediumsmart 2y agoI use rsync in a script. One line builds and the second line deploys - but that pushes to a server someone else has standing on the ground with a disk in it that hosts the site I myself made on a local machine. If I self-hoist the production server into my flat, couldn't I just copy the folder without the internet like from local to local?
- rad_gruchalski 2y agoNo need to even copy a folder, simply link it.
- scottydelta 2y agoI have been using coolify on a bare metal server and it has been such a great experience. The ability to spin up services is crazy good and easy. I was able to evaluate n8n, windmill.dev and prefect in 3 hours because I was able to quickly setup these clusters and test them. And final thing was to compile my code as docker container and spin it up on coolify within mins with custom domain and ssl. How is it different and eaiser than coolify kinda setup?
- kilroy123 2y agoSame here but I've certainly ran into some rough edges. Especially with some of the more complicated one click services. Overall, I like it but I wish it was a bit more polished.
- jilles 2y agoI did the same. Really enjoyed Coolify but at some point there was too much magic. I’m now using Dokku and can’t imagine using something else.
- sameklund 2y agoConsidering both of these right now. Why was Dokku so much better for you?
- notpushkin 2y agoI’m working on Lunni – similar to Coolify, but centered around compose files (hopefully that’s less magic!): https://lunni.dev/ https://lunni.dev/ Would love to hear your thoughts if you give it a try!
- sameklund 2y agoLooks like this is a web UI for docker swarm? Does it have additional PaaS-like features? I think I would probably just use Portainer if I wanted a GUI. Unless I am missing something?
- qudat 2y agoI just use a tunnel service to self host web services, works great and is cheaper than a VPS: https://tuns.sh https://tuns.sh
- __jonas 2y agoI've got a kind of similar setup but what I've been doing is instead using a registry I'm just pushing the images along with the compose file onto the server directly with rsync to keep things even simpler. Would be nice to have a proper tool like this to automate that (I'm just using a bespoke shell script).
- Nelkins 2y agoAll of these projects lack server hardening. I think for most devs it would not be a great idea to just point at a server and let 'er rip. I have a pretty extensive cloud-init script I use for this when deploying to a VPS. I workshopped it by finding existing scripts and having a back and forth with Claude. Feel free to roast it :) https://gist.github.com/NatElkins/20880368b797470f3bc6926e3563cb26 https://gist.github.com/NatElkins/20880368b797470f3bc6926e35...
- notarealllama 2y agoThanks for this, I still provision with a bash script.
- flaskking 2y ago[flagged]
- simpaticoder 2y agoThank you for sharing, because I didn't know what cloud-init was until your post. I've done something similar, but packaged as a library of bash functions, designed to be called in arbitrary order. I cannot comment on the specific decisions you made in your file, but the fact that a declarative, compact, and standard solution exists for this problem is music to my ears. Out of curiosity, where did YOU learn of the existence of this feature?
- shortsunblack 2y agoCloud init/Cloud config is a standard way to provision Linux hosts. It is slowly being outcompeted by Ignition and the friends, though.
- mdaniel 2y ago> It is slowly being outcompeted by Ignition and the friends, though. I hope not, because I lack enough foul language to describe my burning hatred for Ignition and all its cutesy campfire-related project codenames. Hate-red.
- deleted 2y ago[deleted]
- hn_rob 2y agoI have been using a makefile where each target executes a shell script snippet to build, push or deploy containers. The problem is that with simple docker build it doesn't recognize modified code files and uses cached layers. To pick up changes in the code I always have to build with --no-cache which is inefficient. I wonder if Airo can detect changes in the code and rebuild only the image layers that need to be rebuild.
- globular-toast 2y agoThis sounds like a misconfiguration on your part. I've never had this problem with docker before. Are you sure it's not your makefile skipping something because you haven't made the docker bits phony targets (if you're using make as a "script runner", everything should be a phony target. A sign that you're using the wet tool, but I digress).