-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fly deployment #42
Comments
boy thats too easy !
|
I can make a PR is you want once i get it working.. just let me know.. |
😍 no reason to say no! |
cool. will let you know.. |
if we use cockroachdb and embed it in the server then there is no need for docker or docker files. this works on fly.io and well as anyones latop. wanny try this ? |
Hey @gedw99!
What does it mean to "embed" when you say "embed it in the server". Does it mean just grab/install the binary version of the cockroachdb? |
In the docker you put cockroachdb as well as Pgrok. you also put overmind inside. then you use overmind to start it up. So fly runs overmind which runs the other binaries! this is how others run multiple processes on fly.io |
You can also run caddy I side fly.io this way as well as whatever app your hosting / proxying https://github.com/jveres/fly-keydb-serf/blob/main/Dockerfile https://github.com/tmm1/flyapp-mastodon/blob/main/Dockerfile |
What I like about this is that it’s portable. It’s just a docker with overmind and the binaries you can run this on a desktop without docker |
Gotcha, that sounds good to me! So we just need another Dockerfile to build images for fly.io (or in general, a bundle image). |
Yes that’s right. You can also get a bit fancy and slip stream the binaries in at runtime using a control plane like NATS jetstream. You Store all versions of binaries inside Nats object store. the docker boots and all it has is a nats.Go that a ts as an agent. It sits there on top of overmind and subscribes to the binaries. When you have 10 I stances running on fly ( or anywhere else that can run a docker ) , they all update the binary a few milliseconds later. you can fork the process and update the binary with zero down time. This is something I have been working with for a while but have not finished it. Nats is your registry and the binaries can live in your GitHub releases. —- Fly can btw use a do jet image that is hosted on GitHub packsge system too. You might find that useful |
Type out the question
It might be nice to have a fly deployment for the server ?
https://fly.io/docs/languages-and-frameworks/dockerfile/
https://fly.io/docs/languages-and-frameworks/golang/
Fly can only handle docker files and not docker compose. SO you can just have 2 dockers.
we need postgresql and so will use cockroach as its alot easier...
Consent
The text was updated successfully, but these errors were encountered: