Setup Onyx on GCP
e2-standard-4
/e2-standard-8
is a
good starting point. For more details on GCP instances, you can refer to
the GCP documentation.
For more information on sizing, refer to our resourcing guide.
e2-standard-4
instance.
For more details, you can follow the steps in the GCP documentation to create a VM instance.
www.<YOUR_DOMAIN>
and ensure that this also takes the user to your VM instance.
git
, docker
, and docker compose
. For Debian Linux 12, this can be done with the following:
.env
file, you can copy past the following (filling in the missing fields as needed):
.env.nginx
file, put the following:
sudo docker compose -f docker-compose.dev.yml -p onyx-stack up -d --pull always
instead of the above. You can then access Onyx from the IP address from
earlier or from the instance External IP
provided on the instance’s page in
the GCP VM console.sudo docker logs onyx-stack-api_server-1 -f
; once you see a log for
INFO: Application startup complete.
then everything should be good to go).