Skip to content

Commit ccfd73a

Browse files
feat(containers): details on port variable
1 parent d572460 commit ccfd73a

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

serverless/containers/concepts.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The container can then process the message and perform any required actions, suc
7171

7272
The port parameter specifies the network port that your container listens on for incoming requests. If your application or container is set up to listen on a different port, you must specify it using the port parameter when deploying your container to Serverless Containers. It must reflect the port configuration within your container for your service to function correctly.
7373

74-
When creating your container image, we recommend configuring it to listen to the `$PORT` variable. The value defined in the port parameter will then be passed to your container during the deployment.
74+
The value defined in the port parameter will then be passed to your container during the deployment inside the `PORT` environment variable.
7575

7676
## Privacy policy
7777

@@ -129,4 +129,4 @@ Unit used to measure the resource consumption of a container. It reflects the am
129129

130130
## Protocol
131131

132-
Serverless Containers supports **http1** (default) and **http2** (`h2c`). In some cases, for example, while deploying a container using gRPC, you may need to upgrade the protocol for it to work.
132+
Serverless Containers supports **http1** (default) and **http2** (`h2c`). In some cases, for example, while deploying a container using gRPC, you may need to upgrade the protocol for it to work.

serverless/containers/how-to/deploy-a-container-from-external-container-registry.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For now, Serverless Containers only supports public images.
3939
- Choose a **name** for your container and, optionally, a **description**. The name must only contain alphanumeric characters and dashes.
4040
- Choose the **resources** to be allocated to your container at runtime. These define the performance characteristics of your container.
4141
<Message type="note">
42-
Available memory depends on allocated VCPU, and maximum ephemeral storage value depends on allocated memory.
42+
Available memory depends on allocated vCPU, and maximum ephemeral storage value depends on allocated memory.
4343
</Message>
4444
- Set your [scaling](/serverless/containers/concepts/#scaling) preferences, or leave them at default values. The Scaleway platform autoscales the number of available instances of your container to match the incoming load, depending on the settings you define here.
4545
- Click **Advanced options** to define any [environment variables](/serverless/containers/concepts/#environment-variables) you want to inject into your container. For each environment variable, click **+Add variable** and enter the key/value pair.
@@ -48,5 +48,3 @@ For now, Serverless Containers only supports public images.
4848
- Set a custom [timeout](/serverless/containers/concepts/#timeout) for your container.
4949
- Verify the **estimated cost**.
5050
5. Click **Deploy container** to finish.
51-
52-

serverless/containers/reference-content/containers-limitations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ In order to ensure the proper functioning of the product, we restrict the use of
6464
* 9090
6565
* 9091
6666
* Reserved environment variables:
67-
* `PORT`: Port on which your server should listen to (the default value is 8080)
67+
* `PORT`: Value of the port definied in Container settings which the container has to listen to. You can use this environment variable inside your Container for easier deployments to define.
6868
* `SCW_*`: Reserved for product configuration (for example: token validation)
6969

7070
## Default values for CPU and memory limits

0 commit comments

Comments
 (0)