EmissarySocial / emissary

The Social Web Toolkit
https://emissary.dev
GNU Affero General Public License v3.0
119 stars 12 forks source link

fly.io deploy for global HA setup #391

Open gedw99 opened 1 month ago

gedw99 commented 1 month ago

makes it easy for devs and site owners to deploy.

Fly.io does NOT run docker compose, but instead runs docker files.

this is a working Mongo DB HA setup: https://github.com/lubien/mongo-template

this seems to work better: https://github.com/bogordesaincom/mongodb-fly so far..

Then we just run nodes for emissary. Fly.io will scale them to zero as needed and also globally load balance them for us.

https://github.com/superfly/flyctl is the golang control that we can download locally and then we can reply the 2 dockers and we have a globally fault tolerant setup.

benpate commented 1 month ago

I'm not familiar with fly.io, but it looks like a great solution. I have added digital ocean configs to Emissary, and would love to do the same for other providers if that helps people to get running. The end goal would be giving hosting companies the ability to 1-click install Emissary the same way they do with WordPress today.

There is a "production" Dockerfile in /.docker/prod-dockerfile that I'm currently using with Digital Ocean. (Incedentally, this includes the auto-download of ffmpeg, so there's that 🥸)

Would this file also work with fly.io? Or, are there other things we'd need to do to make it work with them?

gedw99 commented 1 month ago

Looks like it will work

easy to try . Just install the flyctl.

I will try to find time but it’s so easy you could also on your own too.

gedw99 commented 1 month ago

https://github.com/superfly/flyctl