Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.27 KB

File metadata and controls

30 lines (18 loc) · 1.27 KB

NGINX hello world

This demonstrates a simple example of running the NGINX base image on Scaleway Serverless Containers.

Requirements

This example assumes you are familiar with how serverless containers work. If needed, you can check the Scaleway official documentation.

This example uses the Scaleway Serverless Framework Plugin. Please set up your environment with the requirements stated in the Scaleway Serverless Framework Plugin before trying out the example.

Deployment

Once your environment is set up, you can deploy your container with:

npm install

serverless deploy

When the deployment is complete, you should be able to curl the container's endpoint or hit it from a browser and see the NGINX default page.

Customising your deployment

To serve custom resource from your NGINX container, you will need to:

  • Build a custom image containing these files
  • Push this image to a publicly accessible repo, or a private Scaleway container repo
  • Update the registryImage field in the serverless.yml file to point to your image, and redeploy