• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

aus-social/mastodon-aws

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

aus-social/mastodon-aws

开源软件地址(OpenSource Url):

https://github.com/aus-social/mastodon-aws

开源编程语言(OpenSource Language):


开源软件介绍(OpenSource Introduction):

AWS Cloudformation Stack - End to End deployment

  • 1x EC2 Server (Dockerised Mastodon Instance)
  • 1x RDS PostgreSQL (for Database)
  • 1 x ElasticCache Redis (for shared cache)
  • 1 x S3 Bucket for storage (with IAM user account linked)

Installation Guide

  1. Setup a new Route53 zone and forward the domain nameservers correctly.
  2. Register with mailgun.com and setup required DNS records for approval.
  3. Create the AWS CFN Stack with the required details.
  4. Register an account on your instance (log in and promote as admin using cli)

Troubleshooting

User-data/meta-data debug information is stored in /var/tmp/bootstrap.txt - /var/tmp$ tail -f /var/tmp/bootstrap.txt

TODO

  • Setup scheduled tasks (documentation related to recommend tasks is slim)
  • Automate creation of admin account (task is currently interactive only)
  • 1 x ElasticSearch [Optional] (for full text search)
  • KMS for at-rest encryption
  • EIP for dedicated Public IP.

Cost

  • EC2 Instance: $16.79 (t2.small)

  • S3 Bucket: $5-$100

  • ElasticCache: $13.14 (cache.t2.micro)

  • RDS PostgreSQL: $13.14 (db.t2.micro)

  • Monthly cost estimated at: $50~ a month

  • I'm running my https://aus.social instance on t2.small instances and we're almost at 100 active users.
  • While much more expensive than digital ocean but much more stable with lower techdebt due to the managed services (RDS/ElasticCache).

Automation steps

  • Creates ec2 instance (t2.small can support hundreds of users)
  • Installs Ubuntu 18.04
  • Installs supporting packages
  • Installs all updates
  • TODO: Install held AWS packages
  • --
  • Setups DNS record on Route53
  • Creates mastodon user
  • Installs docker
  • Installs docker-compose
  • Setups swap
  • --
  • clones mastodon
  • tweaks docker-compose.yml
  • creates .env.production
  • builds docker images
  • prepares the DB
  • precompiles assets
  • boots docker
  • --
  • Installs nginx
  • configures nginx
  • Installs certbot for LetsEncypt TLS
  • --
  • Reboots box



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
cxxxr/cl-mastodon发布时间:2022-08-17
下一篇:
CodedOre/NewCaw: Development on Cawbird 2.0发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap