About Acornfile for running Strapi on Acorn.
You can deploy the sample web app on the Acorn SaaS Platform to test the Application.
Let us have a close look at the Acornfile and see what is defined:
- Containers: These containers will be deployed for running Strapi. We have two containers, one for Strapi and the other for MySQL. We are setting the environment variables returned from the MariaDB Acorn service for the Strapi container.
- Services: Acorn services are external services your application can utilize. In this case, we use the MariaDB Acorn service.
- Login into the Acorn SaaS Platform using the Github Sign-In option with your Github user.
- You can select the "Create Acorn" option to create new Acorns and deploy your Application.
- Choose the source for deploying your Acorns
- Select "From Acorn Image" to deploy the sample Application and select its Image
- Provide any random name such as
web-app
and keeping Project's default Region, type in the below Acorn image and choose Createghcr.io/rohitg00/strapi-mariadb:latest
- the sample App is now provisioned on the Acorn SaaS Platform and is available for up to 2 hours.
- The Strapi container expects me to set up the admin user from localhost and not over the Internet. Hence, I’ll forward the local host to 1337 port. Run the below command for the same.
acorn port-forward strapi-mariadb 1337
- Use the
http://localhost:1337
to set up the Strapi website on your browser.
The Acorn Dashboard integrates multiple features such as Events, Logs, Details, and access to the Shell of the Application. Details include the CPU, Memory, Network, Latency, Requests, and Errors for the Application.
Explore various available options by clicking the Menu option on your Acorn App.
For more details on using the Acorn Dashboard, check this link -
You can edit your Acorn's Image and Advanced Options by selecting the Edit option
Select the Remove option from your Acorn's Menu to Remove the Acorn.