An attempt to run a GoToSocial instance at fly.io.
Testing has been held off due to concerns about surprise bills.
Please let me know if there are running problems!
- fly.io requires a credit card or a minimum of US$25 credit limit.
- FlyToSocial (this repo) expects to use up the free credit completely, but you can adjust it yourself
- I have modified the configuration for personal instance, again you can adjust it yourself
- Object storage is required for storing media files. I recommend looking at ripienaar/free-for-dev#IaaS
Incomplete
# clone repo
git clone https://github.com/kwaa/flytosocial.git
cd flytosocial
# deploy
fly deploy
# volumes
fly volumes create flytosocial_vol -r <region-1> --size 1
fly volumes create flytosocial_vol -r <region-2> --size 1
fly volumes create flytosocial_vol -r <region-3> --size 1
# scale
fly scale count 3
# secrets
fly secrets set GTS_HOST=<your-domain>
fly secrets set GTS_STORAGE_S3_ENDPOINT=<your-s3-endpoint>
fly secrets set GTS_STORAGE_S3_ACCESS_KEY=<your-s3-username>
fly secrets set GTS_STORAGE_S3_SECRET_KEY=<your-s3-password>
fly secrets set GTS_STORAGE_S3_BUCKET=<your-s3-bucket>
- badboy/gotosocial-fly
fly.toml
is referenced from this repository. thanks!
- superseriousbusiness/gotosocial/Dockerfile
- LiteFS Config Reference
- Laravel: Global SQLite with LiteFS