Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions pages/use-cases/deploy-external-software/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ description: Discover how to deploy and manage external software with Scaleway's
Need to deploy and manage external software on your cloud infrastructure? Scaleway provides the tools and services to help you deploy, manage, and scale external software efficiently.

<Grid>
<SummaryCard
title="Deploying Open WebUI with Scaleway's Generative APIs"
icon="info"
description="Deploy a powerful web-based AI user interface with Serverless Containers."
label="Read more"
url="/tutorials/deploy-openwebui-with-generative-apis/"
/>
<SummaryCard
title="Deploying Chatwoot on Scaleway General Purpose Instances"
icon="rocket"
description="With Chatwoot, businesses can set up multiple communication channels, integrate them into their websites or applications, and engage with customers in real-time."
label="Read more"
url="/tutorials/deploy-chatwoot-self-care/"
/>
<SummaryCard
title="Creating a Valheim server with Scaleway"
icon="info"
description="Learn how to create your own Valheim gaming server with Scaleway Instances."
label="Read more"
url="/tutorials/create-valheim-server/"
/>
</Grid>

## Related tutorials
Expand Down
7 changes: 7 additions & 0 deletions pages/use-cases/website-hosting/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ Need to deploy a simple or complex website? Scaleway provides the tools and infr
label="Read more"
url="/tutorials/wordpress-instantapp/"
/>
<SummaryCard
title="Deploy and host a website with Serverless Containers"
icon="book-open-outline"
description="Easily deploy and scale containerized static websites."
label="Read more"
url="/tutorials/hosting-static-websites-serverless-containers/"
/>
</Grid>

## Related tutorials
Expand Down
95 changes: 95 additions & 0 deletions tutorials/hosting-static-websites-serverless-containers/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
title: Hosting a static website with Serverless Containers
description: This page provides guidelines on how to host and deploy a static website using Scaleway Serverless Containers
tags: deploy host website webapp html static containerize application docker dockerfile
products:
- containers
- container-registry
dates:
validation: 2025-10-06
posted: 2025-10-06
validation_frequency: 12
difficulty: beginner
usecase:
- application-hosting
- deploy-external-software
- website-hosting
ecosystem:
- third-party
---

import Requirements from '@macros/iam/requirements.mdx'


<Requirements />

- A Scaleway account logged into the [console](https://console.scaleway.com)
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
- Installed [Docker](https://docs.docker.com/get-started/get-docker/) or [Docker Egine](https://docs.docker.com/engine/install/)
- [Created a Scaleway Container Registry namespace](/container-registry/how-to/create-namespace/) and [logged into it](/container-registry/how-to/connect-docker-cli/)

## Create and host a simple HTML static page

To host a static HTML page on Serverless Containers, you first need to create a simple HTML page that will serve as your website. Next, you will write a Dockerfile to containerize your application, specifying how your HTML file should be served. You will then build the container image locally, and push it to the [Scaleway Container Registry](/container-registry/), before deploying it to [Scaleway Serverless Containers](/serverless-containers/).

1. In a terminal, run the command below to create a new folder and access it:

```bash
mkdir my-static-website
cd my-static-website
```

2. Create a new `index.html` file and add the example code below to it:

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Simple HTML Page</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is a simple paragraph.</p>
</body>
</html>
```

3. In the same folder, create a new `dockerfile` file and add the following code to it:

```dockerfile
FROM nginx:alpine
COPY ./my-static-website /usr/share/nginx/html
EXPOSE 80
```

4. Run the command below to build, tag, and push your image to the Scaleway Container registry:

```bash
docker build \
--platform linux/amd64 \
--push \
-t <CONTAINER_REGISTRY_ENDPOINT>/my-static-website:latest .
```

<Message type="note">
You can find your Container Registry endpoint in the **Settings** tab of your Container Registry Endpoint in the [Scaleway console](https://console.scaleway.com/registry/namespaces)
</Message>

5. [Deploy a Serverless Container](/serverless-containers/how-to/deploy-container/) with the following parameters:

- **Registry**: Scaleway Container Registry
- **Registry namespace**: the Container Registry namespace you pushed your image to.
- **Container port**: `8O` as it is the [port](/serverless-containers/reference-content/port-parameter-variable/) exposed in the dockerfile.
- **Resources**: `100 mVCPU` and `256 MB` memory
- **Autoscaling**: set a minimum scale of `1` to avoid [cold starts](/serverless-containers/concepts/#cold-start) (optional).

The deployment of your container can take up to a minute to complete.

6. Once your container is **ready**, click the **container endpoint** from its **Overview** tab. Your web page displays, and is available to anyone with the link.

## Going further

- You can host a website composed of multiple pages in the `my-static-website` folder.
- You can [add a custom domain](/serverless-containers/how-to/add-a-custom-domain-to-a-container/) name to your website.
- You can host dynamic websites using dedicated frameworks for high-quality web applications.
80 changes: 80 additions & 0 deletions tutorials/hosting-webapps-serverless-containers/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
title: Hosting a web app with Serverless Containers
description: This page provides guidelines on how to host and deploy dynamic web applications using Scaleway Serverless Containers
tags: deploy host website webapp react next containerize application docker dockerfile
products:
- containers
- container-registry
dates:
validation: 2025-10-06
posted: 2025-10-06
validation_frequency: 12
difficulty: beginner
usecase:
- application-hosting
- deploy-external-software
- website-hosting
ecosystem:
- third-party
---

import Requirements from '@macros/iam/requirements.mdx'


<Requirements />

- A Scaleway account logged into the [console](https://console.scaleway.com)
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
- Installed [Docker](https://docs.docker.com/get-started/get-docker/) or [Docker Egine](https://docs.docker.com/engine/install/)
- [Created a Scaleway Container Registry namespace](/container-registry/how-to/create-namespace/) and [logged into it](/container-registry/how-to/connect-docker-cli/)

## Create and host a simple HTML static page

To host a static HTML page on Serverless Containers, you first need to create a simple HTML page that will serve as your website. Next, you will write a Dockerfile to containerize your application, specifying how your HTML file should be served. You will then build the container image locally, and push it to the [Scaleway Container Registry](/container-registry/), before deploying it to [Scaleway Serverless Containers](/serverless-containers/).

1. In a terminal, run the command below to create a new folder and access it:

```bash
mkdir my-static-website
cd my-static-website
```

2.



3. In the same folder, create a new `dockerfile` file and add the following code to it:

```dockerfile
```

4. Run the command below to build, tag, and push your image to the Scaleway Container registry:

```bash
docker build \
--platform linux/amd64 \
--push \
-t <CONTAINER_REGISTRY_ENDPOINT>/my-static-website:latest .
```

<Message type="note">
You can find your Container Registry endpoint in the **Settings** tab of your Container Registry Endpoint in the [Scaleway console](https://console.scaleway.com/registry/namespaces)
</Message>

5. [Deploy a Serverless Container](/serverless-containers/how-to/deploy-container/) with the following parameters:

- **Registry**: Scaleway Container Registry
- **Registry namespace**: the Container Registry namespace you pushed your image to.
- **Container port**: `8O` as it is the [port](/serverless-containers/reference-content/port-parameter-variable/) exposed in the dockerfile.
- **Resources**: `100 mVCPU` and `256 MB` memory
- **Autoscaling**: set a minimum scale of `1` to avoid [cold starts](/serverless-containers/concepts/#cold-start) (optional).

The deployment of your container can take up to a minute to complete.

6. Once your container is **ready**, click the **container endpoint** from its **Overview** tab. Your web page displays, and is available to anyone with the link.

## Going further

- You can host a website composed of multiple pages in the `my-static-website` folder.
- You can [add a custom domain](/serverless-containers/how-to/add-a-custom-domain-to-a-container/) name to your website.
- You can host dynamic websites using dedicated frameworks for high-quality web applications.
Loading