الانتقال إلى المحتوى الرئيسي
استخدام AWS EC2 هو الطريقة الموصى بها لنشر Gorbit. من السهل إعداده ويفترض أن يلبي احتياجات الأداء لـ 90% من المؤسسات التي تتطلع لاستخدام Gorbit!

الدليل

1

إنشاء مثيل EC2

أنشئ مثيل EC2 بالموارد المناسبة. لهذا الدليل، سنستخدم مثيل m7g.xlarge الموصى به.
اقرأ دليل الموارد لمزيد من التفاصيل.
  • أعطِ مثيلك اسمًا وصفياً مثل gorbit-prod
  • اختر Amazon Linux 2023 AMI
  • اختر بنية 64-bit (Arm)
  • اختر نوع المثيل m7g.xlarge
  • اختر Allow HTTPS traffic from the internet في قسم Network settings
  • قم بتكوين التخزين وفقًا لدليل الموارد
EC2 Instance CreationEC2 Security Group Configuration
2

إنشاء المثيل

انقر على Launch instance ثم اعرض تفاصيل مثيلك.
احفظ Public IPv4 address للمثيل!
EC2 Public IPv4 Address
3

Point domain to the instance

If you don’t have a domain, buy one from a DNS provider like GoDaddy or just skip HTTPS for now.
To point our domain to the new instance, we need to add an A and CNAME record to our DNS provider.The A record should be the subdomain that you would like to use for the Gorbit instance like prod.The CNAME record should be the same name with the www. in front resulting in www.prod pointing to the full domain like prod.gorbit.app.DNS A Record ConfigurationDNS CNAME Record Configuration
4

تثبيت متطلبات Gorbit

يتطلب Gorbit git و docker و docker compose.لتثبيتها على Amazon Linux 2023، قم بتشغيل ما يلي:
sudo yum update -y

sudo yum install docker -y
sudo service docker start

sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

sudo yum install git

Next Steps