Deploy Onyx on AWS EC2
Create an EC2 instance
m7g.xlarge
instance.onyx-prod
Amazon Linux 2023
AMI64-bit (Arm)
architecturem7g.xlarge
instance typeAllow HTTPS traffic from the internet
in the Network settings sectionCreate the instance
Point domain to the instance
A
and CNAME
record to our DNS provider.Install Onyx requirements
git
, docker
, and docker compose
.To install these on Amazon Linux 2023, run the following:Install and Configure Onyx
.env
and .env.nginx
files.Launch Onyx
init-letsencrypt.sh
script will get us a SSL certificate from letsencrypt and launch the Onyx stack.docker logs onyx-stack-api_server-1 -f
.