From 405b0e94277478f956087e30e941169f7abd199d Mon Sep 17 00:00:00 2001
From: Arjun Aditya
+
- Learn more about projects in
+ Learn more about projects in
Zerops. See how to import a whole project into Zerops.
diff --git a/apps/docs/content/python/tutorial/step-by-step.mdx b/apps/docs/content/python/tutorial/step-by-step.mdx
index 5b6d35a6..135216c8 100644
--- a/apps/docs/content/python/tutorial/step-by-step.mdx
+++ b/apps/docs/content/python/tutorial/step-by-step.mdx
@@ -23,7 +23,7 @@ In the detail of each step, you can find a link with more information about the
- Learn more about projects in
+ Learn more about projects in
Zerops. See how to import a whole project into Zerops.
Learn more about services in
diff --git a/apps/docs/content/references/cli/commands.mdx b/apps/docs/content/references/cli/commands.mdx
index 031b886f..694dd14a 100644
--- a/apps/docs/content/references/cli/commands.mdx
+++ b/apps/docs/content/references/cli/commands.mdx
@@ -147,7 +147,7 @@ zcli push {flags}
- `--serviceId
-
Unique IPv4 address
+ Dedicated IPv4 address
$3.00 / 30 days
diff --git a/apps/docs/content/help/faq.mdx b/apps/docs/content/help/faq.mdx
index 0d859da8..b671da13 100644
--- a/apps/docs/content/help/faq.mdx
+++ b/apps/docs/content/help/faq.mdx
@@ -5,6 +5,7 @@ description: Get quick answers to your related questions about Zerops from frequ
import Accordion from '/src/components/Accordion';
import { FAQ, FAQItem } from '/src/components/Faq';
+import Image from '/src/components/Image';
Get quick answers to your related questions about Zerops from frequently asked questions we get asked.
@@ -18,6 +19,16 @@ Get quick answers to your related questions about Zerops from frequently asked q
It's free to get started, and no credit card is required! However, we
recommend visiting our pricing page to explore the options that best suit your needs.
+
-```yml
+```yaml
services:
- hostname: app
type: php-nginx@8.4
@@ -570,7 +570,7 @@ The nginx configuration is used to define the nginx settings for the service.
-```yml
+```yaml
#yamlPreprocessor=on
services:
- hostname: app
@@ -598,9 +598,9 @@ services:
The `nginxConfig: |-` parameter allows you to use a custom nginx configuration for the service.
-### Using zerops.yml Configuration
+### Using zerops.yaml Configuration
-This shows you how you can use the `zeropsSetup` parameter as a way to insert a full [zerops.yml configuration file](/zerops-yml/specification) into your service using import yaml.
+This shows you how you can use the `zeropsSetup` parameter as a way to insert a full [zerops.yaml configuration file](/zerops-yaml/specification) into your service using import yaml.
#### Usage
@@ -616,12 +616,12 @@ This shows you how you can use the `zeropsSetup` parameter as a way to insert a
+
+
\ No newline at end of file
diff --git a/apps/docs/sidebars.js b/apps/docs/sidebars.js
index 329d802d..291e32b5 100644
--- a/apps/docs/sidebars.js
+++ b/apps/docs/sidebars.js
@@ -643,6 +643,15 @@ module.exports = {
},
className: 'homepage-sidebar-item',
},
+ {
+ type: 'doc',
+ id: 'references/api',
+ label: 'API',
+ customProps: {
+ sidebar_icon: 'curly-braces',
+ },
+ className: 'homepage-sidebar-item',
+ },
{
type: 'html',
value: 'Help',
diff --git a/apps/docs/src/theme/Icon/CurlyBraces/index.tsx b/apps/docs/src/theme/Icon/CurlyBraces/index.tsx
new file mode 100644
index 00000000..e82c9481
--- /dev/null
+++ b/apps/docs/src/theme/Icon/CurlyBraces/index.tsx
@@ -0,0 +1,27 @@
+import { IconProps } from '@medusajs/icons/dist/types';
+import clsx from 'clsx';
+import React from 'react';
+
+const IconCurlyBraces = (props: IconProps) => {
+ return (
+
+ );
+};
+
+export default IconCurlyBraces;
diff --git a/apps/docs/src/theme/Icon/index.tsx b/apps/docs/src/theme/Icon/index.tsx
index bfb33572..9c56bd56 100644
--- a/apps/docs/src/theme/Icon/index.tsx
+++ b/apps/docs/src/theme/Icon/index.tsx
@@ -41,6 +41,7 @@ import {
ComputerDesktopSolid,
CreditCardSolid,
CubeSolid,
+ CurlyBraces,
CurrencyDollar,
CurrencyDollarSolid,
Discord,
@@ -150,7 +151,7 @@ import IconCloudOk from './CloudOk';
import IconGitlab from './Gitlab';
import IconTypesense from './Typesense';
import IconDocker from './Docker';
-
+import IconCurlyBraces from './CurlyBraces';
export default {
'academic-cap-solid': AcademicCapSolid,
@@ -306,4 +307,5 @@ export default {
database: IconDatabase,
cloudok: IconCloudOk,
typesense: IconTypesense,
+ 'curly-braces': IconCurlyBraces,
};
From 96a800c4ad8f9bf3429ca64e453a0e4f7b90f66a Mon Sep 17 00:00:00 2001
From: vankovap
+
+
+
+ Group
+ Description
+
+
+ /app-version
+ Manage application versions, builds, and deployments
+
+
+ /auth
+ Authentication and token management
+
+
+ /billing
+ Billing operations and payment management
+
+
+ /client
+ Client account management
+
+
+ /client-user
+ User management within client accounts
+
+
+ /github
+ GitHub repository connections and authorization
+
+
+ /gitlab
+ GitLab repository connections and authorization
+
+
+ /project
+ Project management operations
+
+
+ /project-env
+ Project environment variables management
+
+
+ /public-http-routing
+ HTTP routing configuration
+
+
+ /public-port-routing
+ Port routing and firewall rules configuration
+
+
+ /service-stack
+ Service stack operations and configuration
+
+
+ /settings
+ System settings and configurations
+
+
+ /user
+ User account management
+
+
+ /user-data
+ Environment variables management
+
+
+ /user-notification
+ User notifications management
+
+
+
+/user-token
+ Personal access tokens management
+
-
minVCpu
+ minCpu
integer
Minimum number of virtual CPUs
-
@@ -456,8 +456,8 @@ services:
buildFromGit: https://github.com/example/app
enableSubdomainAccess: true
verticalAutoscaling:
- minVCpu: 1
- maxVCpu: 5
+ minCpu: 1
+ maxCpu: 5
# Choose SHARED or DEDICATED
cpuMode: DEDICATED
minRam: 1
@@ -477,7 +477,7 @@ This yaml will create a service with the hostname `app` with `php-nginx@8.4` run
- RAM: `1-32 GB`
- Disk Space: `1-100 GB`
-The `VerticalAutoscaling` map allows you to define the vertical autoscaling settings for the service with parameters like `minVCpu`, `maxVCpu`, `cpuMode`, `minRam`, `maxRam`, `minDisk`, `maxDisk`, `startCpuCoreCount`, `minFreeCpuCores`, `minFreeCpuPercent`, `minFreeRamGB`, `minFreeRamPercent`.
+The `VerticalAutoscaling` map allows you to define the vertical autoscaling settings for the service with parameters like `minCpu`, `maxCpu`, `cpuMode`, `minRam`, `maxRam`, `minDisk`, `maxDisk`, `startCpuCoreCount`, `minFreeCpuCores`, `minFreeCpuPercent`, `minFreeRamGB`, `minFreeRamPercent`.
### Horizontal Autoscaling Configuration
From 97f554dc7298e7f076573d08be3147d5ca14cae9 Mon Sep 17 00:00:00 2001
From: vankovap maxVCpu
+ maxCpu
integer
Maximum number of virtual CPUs
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
diff --git a/apps/docs/src/components/PricingCalculator/index.tsx b/apps/docs/src/components/PricingCalculator/index.tsx
index cdef267b..6d57bec7 100644
--- a/apps/docs/src/components/PricingCalculator/index.tsx
+++ b/apps/docs/src/components/PricingCalculator/index.tsx
@@ -100,7 +100,7 @@ function PricingCalculatorContent() {
ipv4_addr: 3,
backup: 0.1,
buildTime: 0.033,
- egress: 0.1,
+ egress: 0.02,
core: resources.core === 'lightweight' ? 0.0 : 10.0,
};
@@ -386,7 +386,7 @@ function PricingCalculatorContent() {
if (resources.egress > 0) {
addText('Egress Traffic:', margin, y, { color: colors.gray });
- addText(`${resources.egress}GB ($0.10 per 1GB)`, pageWidth - margin - 80, y, { align: 'right', color: colors.darkText });
+ addText(`${resources.egress}GB ($0.02 per 1GB)`, pageWidth - margin - 80, y, { align: 'right', color: colors.darkText });
y += lineHeight;
}
y += sectionSpacing - lineHeight;
@@ -763,7 +763,7 @@ function PricingCalculatorContent() {
diff --git a/apps/docs/content/mariadb/how-to/scale.mdx b/apps/docs/content/mariadb/how-to/scale.mdx
index aa305403..38d962bc 100644
--- a/apps/docs/content/mariadb/how-to/scale.mdx
+++ b/apps/docs/content/mariadb/how-to/scale.mdx
@@ -4,6 +4,7 @@ description: Get to know how Zerops scales your mariadb service.
---
import Image from '/src/components/Image';
+import ResourceTable from '/src/components/ResourceTable';
Zerops performs an automated scaling of hardware resources required to run your database based on its usage. If the current use of your database does not require as much performance or disk space the auto scaling reduces the resources and thus reduces the costs. If your database is under heavy load or needs to store more data, then auto scaling increases the resources for the database to make sure it runs smoothly.
@@ -38,11 +39,11 @@ Choose the CPU mode when starting a new service or change it later. The CPU mode
Vertical auto scaling has following default configuration:
-| | Minimum resource | Maximum resource |
-| ------------- | ---------------- | ---------------- |
-| **CPU cores** | 1 | 5 |
-| **RAM** | 0.5 GB | 32 GB |
-| **Disk** | 1 GB | 100 GB |
+
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
-Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
-Disk
- 5 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
-
-
-
+
-
-
-
- Resources Type
- Minimum resource
- Maximum resource
-
-
- CPU cores
- 1
- 5
-
-
- RAM
- 0.25 GB
- 32 GB
-
-
-
- Disk
- 1 GB
- 100 GB
-
+
+
+ );
+};
+
+export default ResourceTable;
\ No newline at end of file
From a7b9ae034106aee2af73b5090c63bf99dbd7eea6 Mon Sep 17 00:00:00 2001
From: vankovap
+
+
+
+ {Object.values(finalResources).map((resource, index) => (
+
+ Minimum
+ Maximum
+
+
+ ))}
+
+ {resource.name}
+ {resource.min}
+ {resource.max}
+
Egress Traffic
- $0.10 per 1 GB
+ $0.02 per 1 GB
@@ -305,9 +305,9 @@ Each Object storage service can only contain one bucket. If your application nee
Bucket will be created with a name based on the given service name and a random prefix. The name of the bucket cannot be changed later.
-### Create a project based on the description.yml
+### Create a project based on the description.yaml
-When you have your `description.yml` ready, use the `zcli project project-import` command to create a new project and the service infrastructure.
+When you have your `description.yaml` ready, use the `zcli project project-import` command to create a new project and the service infrastructure.
```sh
Usage:
@@ -320,11 +320,11 @@ Flags:
--workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./")
```
-Zerops will create a project and one or more services based on the `description.yml` content.
+Zerops will create a project and one or more services based on the `description.yaml` content.
-Maximum size of the `description.yml` file is 100 kB.
+Maximum size of the `description.yaml` file is 100 kB.
-You don't specify the project name in the `zcli project project-import` command, because the project name is defined in the `description.yml`.
+You don't specify the project name in the `zcli project project-import` command, because the project name is defined in the `description.yaml`.
If you have access to more than one client, you must specify the client ID for which the project is to be created. The `clientID` is located in the Zerops GUI under the client name on the project dashboard page.
@@ -339,9 +339,9 @@ If you have access to more than one client, you must specify the client ID for w
### Add Object service to an existing project
-Create a directory `my-project` if it doesn't exist. Create an `import.yml` file inside the `my-project` directory with following content:
+Create a directory `my-project` if it doesn't exist. Create an `import.yaml` file inside the `my-project` directory with following content:
-```yml
+```yaml
# array of project services
services:
- # service name
@@ -362,9 +362,9 @@ services:
The yaml file describes the list of one or more services that you want to add to your existing project. In the example above, one Object storage service named upload will be created. The bucket quota will be set to 73 GB and the bucket access policy will be set to `public-write`.
-The content of the `services:` section of `import.yml` is identical to the [project description file]. The `import.yml` never contains the `project:` section because the project already exists.
+The content of the `services:` section of `import.yaml` is identical to the [project description file]. The `import.yaml` never contains the `project:` section because the project already exists.
-When you have your `import.yml` ready, use the `zcli project service-import` command to add one or more services to your existing Zerops project.
+When you have your `import.yaml` ready, use the `zcli project service-import` command to add one or more services to your existing Zerops project.
```sh
Usage:
@@ -378,11 +378,11 @@ Flags:
zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from.
-Maximum size of the `import.yml` file is 100 kB.
+Maximum size of the `import.yaml` file is 100 kB.
#### Example
-Create a directory `my-project` if it doesn't exist. Create an `import.yml` file inside the `my-project` directory with following content:
+Create a directory `my-project` if it doesn't exist. Create an `import.yaml` file inside the `my-project` directory with following content:
```bash
# array of project services
@@ -396,4 +396,4 @@ services:
The yaml file describes the list of one or more services that you want to add to your existing project. In the example above, one Object storage service in the single container mode with default auto scaling configuration will be added to your project. Hostname of the new service will be set to `storage`.
-The content of the `services:` section of `import.yml` is identical to the [project description file](#create-a-project-description-file). The `import.yml` never contains the `project:` section because the project already exists.
+The content of the `services:` section of `import.yaml` is identical to the [project description file](#create-a-project-description-file). The `import.yaml` never contains the `project:` section because the project already exists.
diff --git a/apps/docs/content/object-storage/how-to/update-bucket.mdx b/apps/docs/content/object-storage/how-to/update-bucket.mdx
index 472e1cb1..52ba1ded 100644
--- a/apps/docs/content/object-storage/how-to/update-bucket.mdx
+++ b/apps/docs/content/object-storage/how-to/update-bucket.mdx
@@ -52,7 +52,7 @@ Or you can set your own access policy in the [IAM Policy JSON format](https://mi
#### Example:
-```yml
+```yaml
{
'Version': '2012-10-17',
'Statement':
diff --git a/apps/docs/content/php/how-to/build-pipeline.mdx b/apps/docs/content/php/how-to/build-pipeline.mdx
index 86aad20a..edc3b65e 100644
--- a/apps/docs/content/php/how-to/build-pipeline.mdx
+++ b/apps/docs/content/php/how-to/build-pipeline.mdx
@@ -9,11 +9,11 @@ import UnorderedCodeList from 'docs/src/components/UnorderedCodeList';
Zerops provides a customizable build and runtime environment for your PHP application.
-## Add zerops.yml to your repository
+## Add zerops.yaml to your repository
-Start by adding `zerops.yml` file to the **root of your repository** and modify it to fit your application:
+Start by adding `zerops.yaml` file to the **root of your repository** and modify it to fit your application:
-```yml
+```yaml
zerops:
# define hostname of your service
- setup: app
@@ -76,9 +76,9 @@ The top-level element is always `zerops`.
### Setup
The first element `setup` contains the **hostname** of your service. A runtime service with the same hostname must exist in Zerops.
-Zerops supports the definition of multiple runtime services in a single `zerops.yml`. This is useful when you use a monorepo. Just add multiple setup elements in your `zerops.yml`:
+Zerops supports the definition of multiple runtime services in a single `zerops.yaml`. This is useful when you use a monorepo. Just add multiple setup elements in your `zerops.yaml`:
-```yml
+```yaml
zerops:
# definition for app service
- setup: app
@@ -103,7 +103,7 @@ Following options are available for PHP builds:
-At least one service in `services:` section is required. You can create a project with multiple services. The example above contains PHP and PostgreSQL services but you can create a `description.yml` with your own combination of [services](/features/infrastructure).
+At least one service in `services:` section is required. You can create a project with multiple services. The example above contains PHP and PostgreSQL services but you can create a `description.yaml` with your own combination of [services](/features/infrastructure).
@@ -307,7 +307,7 @@ At least one service in `services:` section is required. You can create a projec
-### Create a project based on the description.yml
+### Create a project based on the description.yaml
-When you have your `description.yml` ready, use the `zcli project project-import` command to create a new project and the service infrastructure.
+When you have your `description.yaml` ready, use the `zcli project project-import` command to create a new project and the service infrastructure.
```sh
Usage:
@@ -386,11 +386,11 @@ Flags:
--workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./")
```
-Zerops will create a project and one or more services based on the `description.yml` content.
+Zerops will create a project and one or more services based on the `description.yaml` content.
-Maximum size of the `description.yml` file is 100 kB.
+Maximum size of the `description.yaml` file is 100 kB.
-You don't specify the project name in the `zcli project project-import` command, because the project name is defined in the `description.yml`.
+You don't specify the project name in the `zcli project project-import` command, because the project name is defined in the `description.yaml`.
If you have access to more than one client, you must specify the client ID for which the project is to be created. The `clientID` is located in the Zerops GUI under the client name on the project dashboard page.
@@ -407,7 +407,7 @@ If you have access to more than one client, you must specify the client ID for w
#### Example:
-Create a directory `my-project` if it doesn't exist. Create an `import.yml` file inside the `my-project` directory with following content:
+Create a directory `my-project` if it doesn't exist. Create an `import.yaml` file inside the `my-project` directory with following content:
```yaml
# basic project data
@@ -437,9 +437,9 @@ S3_ACCESS_KEY_ID="P8cX1vVVb"
S3_ACCESS_SECRET="ogFthuiLYki8XoL73opSCQ"
```
-The content of the `services:` section of `import.yml` is identical to the project description file. The `import.yml` never contains the `project:` section because the project already exists.
+The content of the `services:` section of `import.yaml` is identical to the project description file. The `import.yaml` never contains the `project:` section because the project already exists.
-When you have your `import.yml` ready, use the `zcli project service-import` command to add one or more services to your existing Zerops project.
+When you have your `import.yaml` ready, use the `zcli project service-import` command to add one or more services to your existing Zerops project.
```sh
Usage:
@@ -453,4 +453,4 @@ Flags:
zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from.
-Maximum size of the import.yml file is 100 kB.
+Maximum size of the import.yaml file is 100 kB.
diff --git a/apps/docs/content/php/how-to/customize-runtime.mdx b/apps/docs/content/php/how-to/customize-runtime.mdx
index 02dc1595..72114f78 100644
--- a/apps/docs/content/php/how-to/customize-runtime.mdx
+++ b/apps/docs/content/php/how-to/customize-runtime.mdx
@@ -13,9 +13,9 @@ The default PHP runtime environment contains:
- Git and Composer
:::note
-To use Ubuntu instead of the default Alpine, set the [run.os](/zerops-yml/specification#os--1) attribute.
+To use Ubuntu instead of the default Alpine, set the [run.os](/zerops-yaml/specification#os--1) attribute.
-Additional packages and tools can be installed using [run.prepareCommands](/zerops-yml/specification#preparecommands--1).
+Additional packages and tools can be installed using [run.prepareCommands](/zerops-yaml/specification#preparecommands--1).
:::
## Runtime Flow
@@ -33,7 +33,7 @@ When the first deploy with a defined `prepareCommands` attribute is triggered, Z
1. Create a prepare runtime container
2. Optionally: [copy selected folders or files from your build container](/php/how-to/build-pipeline#copy-folders-or-files-from-your-build-container)
-3. Run the [run.prepareCommands](/zerops-yml/specification#preparecommands--1) commands in the defined order
+3. Run the [run.prepareCommands](/zerops-yaml/specification#preparecommands--1) commands in the defined order
## Command exit code
@@ -63,11 +63,11 @@ When the custom runtime cache is used, Zerops doesn't create a prepare runtime c
### Overwrite php.ini files
-You can override PHP configuration directives by setting environment variables in your `zerops.yml` file.
+You can override PHP configuration directives by setting environment variables in your `zerops.yaml` file.
Here's an example of how to adjust PHP's `post_max_size` directive:
-```yml
+```yaml
zerops:
# define hostname of your service
- setup: app
diff --git a/apps/docs/content/php/how-to/customize-web-server.mdx b/apps/docs/content/php/how-to/customize-web-server.mdx
index be7ffc67..90907ea6 100644
--- a/apps/docs/content/php/how-to/customize-web-server.mdx
+++ b/apps/docs/content/php/how-to/customize-web-server.mdx
@@ -45,7 +45,7 @@ server {
The configuration contains 2 variables:
-- **`{{.DocumentRoot}}`** is replaced by the `run.documentRoot` attribute from the `zerops.yml`. If the attribute is not specified, the default value `/var/www` is used.
+- **`{{.DocumentRoot}}`** is replaced by the `run.documentRoot` attribute from the `zerops.yaml`. If the attribute is not specified, the default value `/var/www` is used.
- **`{{.PhpSocket}}`** is replaced by a path to the PHP socket based on the PHP version.
@@ -57,7 +57,7 @@ Follow these steps to customize the Nginx configuration in PHP+Nginx service:
2. Optionally use following variables:
-- **`{{.DocumentRoot}}`** is replaced by the `run.documentRoot` attribute from the `zerops.yml`. If the attribute is not specified, the default value `/var/www` is used.
+- **`{{.DocumentRoot}}`** is replaced by the `run.documentRoot` attribute from the `zerops.yaml`. If the attribute is not specified, the default value `/var/www` is used.
Example:
@@ -73,7 +73,7 @@ Example:
fastcgi_pass unix:{{.PhpSocket}};
```
-- **`{{.Environment.ENV_NAME}}`** is replaced by the [env variable](/php/how-to/env-variables) value. The env variable must be either defined in [run.envVariables](/php/how-to/build-pipeline#envvariables-1) in `zerops.yml` or set as a [secret](/php/how-to/env-variables#set-secret-env-variables-in-zerops-gui) or [generated](/php/how-to/env-variables#generated-env-variables) env variable in Zerops GUI.
+- **`{{.Environment.ENV_NAME}}`** is replaced by the [env variable](/php/how-to/env-variables) value. The env variable must be either defined in [run.envVariables](/php/how-to/build-pipeline#envvariables-1) in `zerops.yaml` or set as a [secret](/php/how-to/env-variables#set-secret-env-variables-in-zerops-gui) or [generated](/php/how-to/env-variables#generated-env-variables) env variable in Zerops GUI.
:::caution
Use the **.tmpl** file extension to make Zerops interpret the file as a template. Zerops will replace the supported variables listed above.
@@ -82,12 +82,12 @@ Use the **.tmpl** file extension to make Zerops interpret the file as a template
3. Check that your Nginx configuration is consistent with Zerops requirements:
- Do not use IP addresses in the `listen` directive
-- If you use other ports than `:80` in the `listen` directive, add them to the `run.ports` in your `zerops.yml` as well.
+- If you use other ports than `:80` in the `listen` directive, add them to the `run.ports` in your `zerops.yaml` as well.
- Do not use the port **:443**. All the incoming `https://` traffic is terminated on the Zerops internal balancer where the SSL certificate is installed and the request is forwarded to your PHP+Nginx service as a **http://** on the port **:80**.
-4. Add the `siteConfigPath` to the run section of your `zerops.yml`
+4. Add the `siteConfigPath` to the run section of your `zerops.yaml`
-```yml
+```yaml
zerops:
# define hostname of your service
- setup: app
@@ -146,7 +146,7 @@ The default PHP+Apache service has following Apache configuration:
The configuration contains 2 variables:
-- **`{{.DocumentRoot}}`** is replaced by the `run.documentRoot` attribute from the `zerops.yml`. If the attribute is not specified, the default value `/var/www` is used.
+- **`{{.DocumentRoot}}`** is replaced by the `run.documentRoot` attribute from the `zerops.yaml`. If the attribute is not specified, the default value `/var/www` is used.
- **`{{.PhpSocket}}`** is replaced by a path to the PHP socket based on the PHP version.
@@ -158,7 +158,7 @@ Follow these steps to customize the Apache configuration in PHP+Apache service:
2. Optionally use following variables:
-- **`{{.DocumentRoot}}`** is replaced by the `run.documentRoot` attribute from the `zerops.yml`. If the attribute is not specified, the default value `/var/www` is used.
+- **`{{.DocumentRoot}}`** is replaced by the `run.documentRoot` attribute from the `zerops.yaml`. If the attribute is not specified, the default value `/var/www` is used.
Example:
@@ -176,7 +176,7 @@ Example:
```
-- **`{{.Environment.ENV_NAME}}`** is replaced by the [env variable](/php/how-to/env-variables) value. The env variable must be either defined in [run.envVariables](<(/php/how-to/build-pipeline#envvariables-1)>) in `zerops.yml` or set as a [secret](/php/how-to/env-variables#set-secret-env-variables-in-zerops-gui) or [generated](/php/how-to/env-variables#generated-env-variables) env variable in Zerops GUI.
+- **`{{.Environment.ENV_NAME}}`** is replaced by the [env variable](/php/how-to/env-variables) value. The env variable must be either defined in [run.envVariables](<(/php/how-to/build-pipeline#envvariables-1)>) in `zerops.yaml` or set as a [secret](/php/how-to/env-variables#set-secret-env-variables-in-zerops-gui) or [generated](/php/how-to/env-variables#generated-env-variables) env variable in Zerops GUI.
:::caution
Use the **.tmpl** file extension to make Zerops interpret the file as a template. Zerops will replace the supported variables listed above.
@@ -185,12 +185,12 @@ Use the **.tmpl** file extension to make Zerops interpret the file as a template
3. Check that your Apache configuration is consistent with Zerops requirements:
- Do not use IP addresses in the `
Specifies the service type and version.
- See what [PHP service types](/references/importyml/type-list#runtime-services) are currently supported.
+ See what [PHP service types](/references/import-yaml/type-list#runtime-services) are currently supported.
@@ -371,9 +371,9 @@ At least one service in `services:` section is required. You can create a projec
basic
build
- zerops.yml
+ zerops.yaml
basic
runtime
- zerops.yml
+ zerops.yaml
secret
@@ -41,13 +41,13 @@ There are 3 different sets of env variables in Zerops:
Use the [secret env variables](/php/how-to/create#set-secret-environment-variables) for all sensitive data you don't want to store in your application code. Secret env variables are also useful if you need for testing where you need to change the value of some env variables frequently. Secret variables are managed in Zerops GUI and you don't have to redeploy your application.
-The basic build and runtime env variables are listed in your [zerops.yml](/zerops-yml/specification) and deployed together with your application code. When you need to update a value of an existing env variable or change the set of build or runtime env variables, update your zerops.yml and redeploy your application to Zerops.
+The basic build and runtime env variables are listed in your [zerops.yaml](/zerops-yaml/specification) and deployed together with your application code. When you need to update a value of an existing env variable or change the set of build or runtime env variables, update your zerops.yaml and redeploy your application to Zerops.
You can [reference](/php/how-to/env-variables#reference-a-local-variable-in-another-variable-value) another variable of the same service or even a variable of [another service](/php/how-to/env-variables#reference-a-variable-of-another-project-service) within the same project.
## Set secret env variables in Zerops GUI
-Use secret variables to store passwords, tokens and other sensitive information that shouldn't be part of your repository and listed in zerops.yml.
+Use secret variables to store passwords, tokens and other sensitive information that shouldn't be part of your repository and listed in zerops.yaml.
:::info
-You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yml` in your repository.
+You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yaml` in your repository.
:::
### Skip the automatic pipeline once
@@ -61,13 +61,13 @@ To start a new build & deploy pipeline manually, use the Zerops CLI.
Follow these steps:
-1. Add `zerops.yml` to your repository.
+1. Add `zerops.yaml` to your repository.
2. [Install & setup zCLI](/references/cli) the Zerops command line tool.
3. Run `zcli push` command.
The `zcli push` command uploads your application code, builds and deploys your application in Zerops.
-The command triggers the [build pipeline](/php/how-to/trigger-pipeline) defined in `zerops.yml`. `zerops.yml` must be in the working directory. The working directory is by default the current directory and can be changed using the
`--workingDir` flag.
+The command triggers the [build pipeline](/php/how-to/trigger-pipeline) defined in `zerops.yaml`. `zerops.yaml` must be in the working directory. The working directory is by default the current directory and can be changed using the
`--workingDir` flag.
zCLI uploads all files and subdirectories of the working directory to Zerops and starts the build pipeline. If the `.gitignore` file is found, it is interpreted and the defined files and folders will be ignored.
@@ -90,14 +90,14 @@ Flags:
command is to be executed.
--versionName string Adds a custom version name. Automatically filled if the VERSIONNAME environment variable exists.
--workingDir string Sets a custom working directory. Default working directory is the current directory. (default "./")
- --zeropsYamlPath string Sets a custom path to the zerops.yml file relative to the working directory. By default zCLI
- looks for zerops.yml in the working directory.
+ --zeropsYamlPath string Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI
+ looks for zerops.yaml in the working directory.
```
zCLI commands are interactive, when you press enter after `zcli push`, you will be given a list of your projects to choose from.
:::info
-You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yml` in your repository.
+You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yaml` in your repository.
:::
## Manual deploy using Zerops CLI
@@ -106,7 +106,7 @@ To start only a deploy pipeline, use the Zerops CLI.
Follow these steps:
-1. Add [zerops.yml](/php/how-to/build-pipeline#add-zeropsyml-to-your-repository) to your repository. Omit the build section.
+1. Add [zerops.yaml](/php/how-to/build-pipeline#add-zeropsyaml-to-your-repository) to your repository. Omit the build section.
2. [Install & setup zCLI](/references/cli) the Zerops command line tool.
3. Run `zcli service deploy` command.
@@ -121,8 +121,8 @@ Usage:
Flags:
--archiveFilePath string If set, zCLI creates a tar.gz archive with the application code in the required path relative
to the working directory. By default, no archive is created.
- --deployGitFolder Sets a custom path to the zerops.yml file relative to the working directory. By default zCLI
- looks for zerops.yml in the working directory.
+ --deployGitFolder Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI
+ looks for zerops.yaml in the working directory.
-h, --help the service deploy command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
@@ -130,14 +130,14 @@ Flags:
command is to be executed.
--versionName string Adds a custom version name. Automatically filled if the VERSIONNAME environment variable exists.
--workingDir string Sets a custom working directory. Default working directory is the current directory. (default "./")
- --zeropsYamlPath string Sets a custom path to the zerops.yml file relative to the working directory. By default zCLI
- looks for zerops.yml in the working directory.
+ --zeropsYamlPath string Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI
+ looks for zerops.yaml in the working directory.
```
`pathToFileOrDir` defines a path to one or more directories and/or files relative to the working directory. The working directory is by default the current directory and can be changed using the
`--workingDir` flag.
-`zerops.yml` must be placed in the working directory.
+`zerops.yaml` must be placed in the working directory.
:::info
-You can change the deploy pipeline when you need to. Just simply modify the `zerops.yml` in your working directory.
+You can change the deploy pipeline when you need to. Just simply modify the `zerops.yaml` in your working directory.
:::
diff --git a/apps/docs/content/php/how-to/upgrade.mdx b/apps/docs/content/php/how-to/upgrade.mdx
index 6878f091..90c77a3d 100644
--- a/apps/docs/content/php/how-to/upgrade.mdx
+++ b/apps/docs/content/php/how-to/upgrade.mdx
@@ -3,6 +3,6 @@ title: How to upgrade the PHP version
description: Learn how to upgrade your php service's version
---
-You can upgrade or downgrade your PHP service to a different major PHP version by setting the `run.base` parameter in your `zerops.yml`. When you [trigger a new pipeline](/php/how-to/trigger-pipeline), Zerops will start new runtime container(s) with the required PHP version. If you don't specify the `run.base` attribute in your `zerops.yml`, Zerops keeps the current PHP version for your runtime.
+You can upgrade or downgrade your PHP service to a different major PHP version by setting the `run.base` parameter in your `zerops.yaml`. When you [trigger a new pipeline](/php/how-to/trigger-pipeline), Zerops will start new runtime container(s) with the required PHP version. If you don't specify the `run.base` attribute in your `zerops.yaml`, Zerops keeps the current PHP version for your runtime.
-If you want to build your application with a different major PHP version, change the `build.base` parameter in your `zerops.yml`. The `build.base` is the required attribute.
+If you want to build your application with a different major PHP version, change the `build.base` parameter in your `zerops.yaml`. The `build.base` is the required attribute.
diff --git a/apps/docs/content/php/overview.mdx b/apps/docs/content/php/overview.mdx
index 4c7f86d5..97187b6e 100644
--- a/apps/docs/content/php/overview.mdx
+++ b/apps/docs/content/php/overview.mdx
@@ -23,9 +23,9 @@ As said, there is no need for coding yet, we have created a [Github repository
1. Log in/sign up to [Zerops GUI ↗](https://app.zerops.io)
-2. In the **Projects** box click on **Import a project** and paste in the following yml config ([source ↗](https://github.com/zeropsio/recipe-php-hello-world/blob/main/import-project/description.yml)):
+2. In the **Projects** box click on **Import a project** and paste in the following YAML config ([source ↗](https://github.com/zeropsio/recipe-php-hello-world/blob/main/import-project/description.yaml)):
-```yml
+```yaml
project:
name: my-first-project
services:
@@ -96,12 +96,12 @@ Do you have any questions? Check the step-by-step tutorial, browse the documenta
},
{
type: 'link',
- href: '/php/how-to/build-pipeline#add-zeropsyml-to-your-repository',
- label: 'zerops.yml',
+ href: '/php/how-to/build-pipeline#add-zeropsyaml-to-your-repository',
+ label: 'zerops.yaml',
customProps: {
icon: Icons['puzzle'],
description:
- 'See a full example of zerops.yml file to create your own app.',
+ 'See a full example of zerops.yaml file to create your own app.',
},
},
{
diff --git a/apps/docs/content/postgresql/how-to/create.mdx b/apps/docs/content/postgresql/how-to/create.mdx
index c4cac9a5..efe641ec 100644
--- a/apps/docs/content/postgresql/how-to/create.mdx
+++ b/apps/docs/content/postgresql/how-to/create.mdx
@@ -143,9 +143,9 @@ Zerops uses a YAML format file to describe the project infrastructure.
#### Basic example
-Create a directory `my-project`. Create a `description.yml` file inside the directory with the following content:
+Create a directory `my-project`. Create a `description.yaml` file inside the directory with the following content:
-```yml
+```yaml
# Basic project data
project:
# project name
@@ -164,9 +164,9 @@ The YAML file describes your future project infrastructure. The project will con
#### Full example
-Create a directory `my-project`. Create a `description.yml` file inside the directory with the following content:
+Create a directory `my-project`. Create a `description.yaml` file inside the directory with the following content:
-```yml
+```yaml
# Basic project data
project:
# project name
@@ -211,7 +211,7 @@ The hostname of the first service will be set to `postgresql1`. The [high availa
The hostname of the second service will be set to `postgresql2`. The [single container](#single-container) mode will be chosen and the default [auto scaling configuration](/postgresql/how-to/scale) will be set.
-#### Description of description.yml parameters
+#### Description of description.yaml parameters
The `project:` section is required. Only one project can be defined.
@@ -243,7 +243,7 @@ The `project:` section is required. Only one project can be defined.
-At least one service in the `services:` section is required. You can create a project with multiple services. The example above contains only PostgreSQL services but you can create a `description.yml` with [different types] of services.
+At least one service in the `services:` section is required. You can create a project with multiple services. The example above contains only PostgreSQL services but you can create a `description.yaml` with [different types] of services.
@@ -278,7 +278,7 @@ At least one service in the `services:` section is required. You can create a pr
-At least one service in `services:` section is required. You can create a project with multiple services. The example above contains Python and PostgreSQL services but you can create a `description.yml` with your own combination of [services](/features/infrastructure).
+At least one service in `services:` section is required. You can create a project with multiple services. The example above contains Python and PostgreSQL services but you can create a `description.yaml` with your own combination of [services](/features/infrastructure).
Specifies the service type and version.
- See what [PostgreSQL service types](/references/importyml/type-list#database-services) are currently supported.
+ See what [PostgreSQL service types](/references/import-yaml/type-list#database-services) are currently supported.
@@ -364,9 +364,9 @@ At least one service in the `services:` section is required. You can create a pr
The PostgreSQL service **hostname** and **mode** are fixed after the service is created. They can't be changed later.
:::
-### Create a project based on the description.yml
+### Create a project based on the description.yaml
-When you have your `description.yml` ready, use the `zcli project project-import` command to create a new project and the service infrastructure.
+When you have your `description.yaml` ready, use the `zcli project project-import` command to create a new project and the service infrastructure.
```sh
Usage:
@@ -379,11 +379,11 @@ Flags:
--workingDie string Sets a custom working directory. The default working directory is the current directory. (default "./")
```
-Zerops will create a project and one or more services based on the `description.yml` content.
+Zerops will create a project and one or more services based on the `description.yaml` content.
-The maximum size of the `description.yml` file is 100 kB.
+The maximum size of the `description.yaml` file is 100 kB.
-You don't specify the project name in the `zcli project project-import` command, because the project name is defined in the `description.yml`.
+You don't specify the project name in the `zcli project project-import` command, because the project name is defined in the `description.yaml`.
If you have access to more than one client, you must specify the client ID for which the project is to be created. The `clientID` is located in the Zerops GUI under the client name on the project dashboard page.
@@ -399,7 +399,7 @@ If you have access to more than one client, you must specify the client ID for w
#### Example
-Create a directory `my-project` if it doesn't exist. Create an `import.yml` file inside the `my-project` directory with following content:
+Create a directory `my-project` if it doesn't exist. Create an `import.yaml` file inside the `my-project` directory with following content:
```bash
# array of project services
@@ -415,9 +415,9 @@ services:
The YAML file describes the list of one or more services that you want to add to your existing project. In the example above, one PostgreSQL service in the [single container mode](#single-container) with default [auto scaling](/postgresql/how-to/scale) configuration will be added to your project. The hostname of the new service will be set to `postgresql1`.
-The content of the `services:` section of `import.yml` is identical to the [project description file](#create-a-project-description-file). The `import.yml` never contains the `project:` section because the project already exists.
+The content of the `services:` section of `import.yaml` is identical to the [project description file](#create-a-project-description-file). The `import.yaml` never contains the `project:` section because the project already exists.
-When your `import.yml` is ready, use the `zcli project service-import` command to add one or more services to your existing Zerops project.
+When your `import.yaml` is ready, use the `zcli project service-import` command to add one or more services to your existing Zerops project.
```sh
Usage:
@@ -431,4 +431,4 @@ Flags:
zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from.
-The maximum size of the `import.yml` file is 100 kB.
+The maximum size of the `import.yaml` file is 100 kB.
diff --git a/apps/docs/content/python/how-to/build-pipeline.mdx b/apps/docs/content/python/how-to/build-pipeline.mdx
index f29a9539..3d4ceb89 100644
--- a/apps/docs/content/python/how-to/build-pipeline.mdx
+++ b/apps/docs/content/python/how-to/build-pipeline.mdx
@@ -9,11 +9,11 @@ import UnorderedCodeList from 'docs/src/components/UnorderedCodeList';
Zerops provides a customizable build and runtime environment for your Python application.
-## Add zerops.yml to your repository
+## Add zerops.yaml to your repository
-Start by adding `zerops.yml` file to the **root of your repository** and modify it to fit your application:
+Start by adding `zerops.yaml` file to the **root of your repository** and modify it to fit your application:
-```yml
+```yaml
zerops:
# define hostname of your service
- setup: app
@@ -74,9 +74,9 @@ The top-level element is always `zerops`.
### Setup
The first element `setup` contains the **hostname** of your service. A runtime service with the same hostname must exist in Zerops.
-Zerops supports the definition of multiple runtime services in a single `zerops.yml`. This is useful when you use a monorepo. Just add multiple setup elements in your `zerops.yml`:
+Zerops supports the definition of multiple runtime services in a single `zerops.yaml`. This is useful when you use a monorepo. Just add multiple setup elements in your `zerops.yaml`:
-```yml
+```yaml
zerops:
# definition for app service
- setup: app
@@ -101,7 +101,7 @@ Following options are available for Python builds:
@@ -311,7 +311,7 @@ At least one service in `services:` section is required. You can create a projec
-### Create a project based on the description.yml
+### Create a project based on the description.yaml
-When you have your `description.yml` ready, use the `zcli project project-import` command to create a new project and the service infrastructure.
+When you have your `description.yaml` ready, use the `zcli project project-import` command to create a new project and the service infrastructure.
```sh
Usage:
@@ -390,11 +390,11 @@ Flags:
--workingDie string Sets a custom working directory. Default working directory is the current directory. (default "./")
```
-Zerops will create a project and one or more services based on the `description.yml` content.
+Zerops will create a project and one or more services based on the `description.yaml` content.
-Maximum size of the `description.yml` file is 100 kB.
+Maximum size of the `description.yaml` file is 100 kB.
-You don't specify the project name in the `zcli project project-import` command, because the project name is defined in the `description.yml`.
+You don't specify the project name in the `zcli project project-import` command, because the project name is defined in the `description.yaml`.
If you have access to more than one client, you must specify the client ID for which the project is to be created. The `clientID` is located in the Zerops GUI under the client name on the project dashboard page.
@@ -410,7 +410,7 @@ If you have access to more than one client, you must specify the client ID for w
#### Example:
-Create a directory `my-project` if it doesn't exist. Create an `import.yml` file inside the `my-project` directory with following content:
+Create a directory `my-project` if it doesn't exist. Create an `import.yaml` file inside the `my-project` directory with following content:
```yaml
# basic project data
@@ -440,9 +440,9 @@ S3_ACCESS_KEY_ID="P8cX1vVVb"
S3_ACCESS_SECRET="ogFthuiLYki8XoL73opSCQ"
```
-The content of the `services:` section of `import.yml` is identical to the project description file. The `import.yml` never contains the `project:` section because the project already exists.
+The content of the `services:` section of `import.yaml` is identical to the project description file. The `import.yaml` never contains the `project:` section because the project already exists.
-When you have your `import.yml` ready, use the `zcli project service-import` command to add one or more services to your existing Zerops project.
+When you have your `import.yaml` ready, use the `zcli project service-import` command to add one or more services to your existing Zerops project.
```sh
Usage:
@@ -456,4 +456,4 @@ Flags:
zCLI commands are interactive, when you press enter after `zcli project service-import importYamlPath`, you will be given a list of your projects to choose from.
-Maximum size of the import.yml file is 100 kB.
+Maximum size of the import.yaml file is 100 kB.
diff --git a/apps/docs/content/python/how-to/customize-runtime.mdx b/apps/docs/content/python/how-to/customize-runtime.mdx
index a755a0d7..5e7e4aa1 100644
--- a/apps/docs/content/python/how-to/customize-runtime.mdx
+++ b/apps/docs/content/python/how-to/customize-runtime.mdx
@@ -22,9 +22,9 @@ The default Python runtime environment contains:
- Git and PIP
:::note
-To use Ubuntu instead of the default Alpine, set the [run.os](/zerops-yml/specification#os--1) attribute.
+To use Ubuntu instead of the default Alpine, set the [run.os](/zerops-yaml/specification#os--1) attribute.
-Additional packages and tools can be installed using [run.prepareCommands](/zerops-yml/specification#preparecommands--1).
+Additional packages and tools can be installed using [run.prepareCommands](/zerops-yaml/specification#preparecommands--1).
:::
## Runtime Flow
diff --git a/apps/docs/content/python/how-to/deploy-process.mdx b/apps/docs/content/python/how-to/deploy-process.mdx
index e7d25f8d..97211a54 100644
--- a/apps/docs/content/python/how-to/deploy-process.mdx
+++ b/apps/docs/content/python/how-to/deploy-process.mdx
@@ -40,7 +40,7 @@ Zerops performs following actions for each new container:
Services with multiple containers are deployed in parallel.
:::info
-If your application needs to be initialized in each runtime container, add [init commands](/python/how-to/build-pipeline#initcommands) to `zerops.yml`.
+If your application needs to be initialized in each runtime container, add [init commands](/python/how-to/build-pipeline#initcommands) to `zerops.yaml`.
:::
:::caution
@@ -58,7 +58,7 @@ The old containers are then removed from the project balancer so they don't rece
## Readiness checks
-If your application isn't ready to handle requests right after it is started via the [start command](/python/how-to/build-pipeline#start), configure a [readiness check](/python/how-to/build-pipeline#readiness-check) in your `zerops.yml`.
+If your application isn't ready to handle requests right after it is started via the [start command](/python/how-to/build-pipeline#start), configure a [readiness check](/python/how-to/build-pipeline#readiness-check) in your `zerops.yaml`.
If the readiness check is defined, Zerops will:
@@ -94,7 +94,7 @@ The list of application versions is available in Zerops GUI. Go to the service d
The pipeline detail is accessible from the additional menu. The pipeline detail contains
-- The pipeline config (`zerops.yml`) that was used for the selected version
+- The pipeline config (`zerops.yaml`) that was used for the selected version
- The build log (if available)
- The prepare runtime log (if available)
diff --git a/apps/docs/content/python/how-to/env-variables.mdx b/apps/docs/content/python/how-to/env-variables.mdx
index 99ce45a8..0345b09d 100644
--- a/apps/docs/content/python/how-to/env-variables.mdx
+++ b/apps/docs/content/python/how-to/env-variables.mdx
@@ -23,12 +23,12 @@ There are 3 different sets of env variables in Zerops:
Specifies the service type and version.
- See what [Python service types](/references/importyml/type-list#runtime-services) are currently supported.
+ See what [Python service types](/references/import-yaml/type-list#runtime-services) are currently supported.
@@ -375,9 +375,9 @@ At least one service in `services:` section is required. You can create a projec
basic
build
- zerops.yml
+ zerops.yaml
basic
runtime
- zerops.yml
+ zerops.yaml
secret
@@ -41,13 +41,13 @@ There are 3 different sets of env variables in Zerops:
Use the [secret env variables](/python/how-to/create#set-secret-environment-variables) for all sensitive data you don't want to store in your application code. Secret env variables are also useful if you need for testing where you need to change the value of some env variables frequently. Secret variables are managed in Zerops GUI and you don't have to redeploy your application.
-The basic build and runtime env variables are listed in your [zerops.yml](/zerops-yml/specification) and deployed together with your application code. When you need to update a value of an existing env variable or change the set of build or runtime env variables, update your zerops.yml and redeploy your application to Zerops.
+The basic build and runtime env variables are listed in your [zerops.yaml](/zerops-yaml/specification) and deployed together with your application code. When you need to update a value of an existing env variable or change the set of build or runtime env variables, update your zerops.yaml and redeploy your application to Zerops.
You can [reference](/python/how-to/env-variables#reference-a-local-variable-in-another-variable-value) another variable of the same service or even a variable of [another service](/python/how-to/env-variables#reference-a-variable-of-another-project-service) within the same project.
## Set secret env variables in Zerops GUI
-Use secret variables to store passwords, tokens and other sensitive information that shouldn't be part of your repository and listed in zerops.yml.
+Use secret variables to store passwords, tokens and other sensitive information that shouldn't be part of your repository and listed in zerops.yaml.
:::info
-You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yml` in your repository.
+You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yaml` in your repository.
:::
### Skip the automatic pipeline once
@@ -61,13 +61,13 @@ To start a new build & deploy pipeline manually, use the Zerops CLI.
Follow these steps:
-1. Add `zerops.yml` to your repository.
+1. Add `zerops.yaml` to your repository.
2. [Install & setup zCLI](/references/cli) the Zerops command line tool.
3. Run `zcli push` command.
The `zcli push` command uploads your application code, builds and deploys your application in Zerops.
-The command triggers the [build pipeline](/python/how-to/trigger-pipeline) defined in `zerops.yml`. `zerops.yml` must be in the working directory. The working directory is by default the current directory and can be changed using the
`--workingDir` flag.
+The command triggers the [build pipeline](/python/how-to/trigger-pipeline) defined in `zerops.yaml`. `zerops.yaml` must be in the working directory. The working directory is by default the current directory and can be changed using the
`--workingDir` flag.
zCLI uploads all files and subdirectories of the working directory to Zerops and starts the build pipeline. If the `.gitignore` file is found, it is interpreted and the defined files and folders will be ignored.
@@ -90,14 +90,14 @@ Flags:
command is to be executed.
--versionName string Adds a custom version name. Automatically filled if the VERSIONNAME environment variable exists.
--workingDir string Sets a custom working directory. Default working directory is the current directory. (default "./")
- --zeropsYamlPath string Sets a custom path to the zerops.yml file relative to the working directory. By default zCLI
- looks for zerops.yml in the working directory.
+ --zeropsYamlPath string Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI
+ looks for zerops.yaml in the working directory.
```
zCLI commands are interactive, when you press enter after `zcli push`, you will be given a list of your projects to choose from.
:::info
-You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yml` in your repository.
+You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yaml` in your repository.
:::
## Manual deploy using Zerops CLI
@@ -106,7 +106,7 @@ To start only a deploy pipeline, use the Zerops CLI.
Follow these steps:
-1. Add [zerops.yml](/python/how-to/build-pipeline#add-zeropsyml-to-your-repository) to your repository. Omit the build section.
+1. Add [zerops.yaml](/python/how-to/build-pipeline#add-zeropsyaml-to-your-repository) to your repository. Omit the build section.
2. [Install & setup zCLI](/references/cli) the Zerops command line tool.
3. Run `zcli service deploy` command.
@@ -121,8 +121,8 @@ Usage:
Flags:
--archiveFilePath string If set, zCLI creates a tar.gz archive with the application code in the required path relative
to the working directory. By default, no archive is created.
- --deployGitFolder Sets a custom path to the zerops.yml file relative to the working directory. By default zCLI
- looks for zerops.yml in the working directory.
+ --deployGitFolder Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI
+ looks for zerops.yaml in the working directory.
-h, --help the service deploy command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
@@ -130,14 +130,14 @@ Flags:
command is to be executed.
--versionName string Adds a custom version name. Automatically filled if the VERSIONNAME environment variable exists.
--workingDir string Sets a custom working directory. Default working directory is the current directory. (default "./")
- --zeropsYamlPath string Sets a custom path to the zerops.yml file relative to the working directory. By default zCLI
- looks for zerops.yml in the working directory.
+ --zeropsYamlPath string Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI
+ looks for zerops.yaml in the working directory.
```
`pathToFileOrDir` defines a path to one or more directories and/or files relative to the working directory. The working directory is by default the current directory and can be changed using the
`--workingDir` flag.
-`zerops.yml` must be placed in the working directory.
+`zerops.yaml` must be placed in the working directory.
:::info
-You can change the deploy pipeline when you need to. Just simply modify the `zerops.yml` in your working directory.
+You can change the deploy pipeline when you need to. Just simply modify the `zerops.yaml` in your working directory.
:::
diff --git a/apps/docs/content/python/how-to/upgrade.mdx b/apps/docs/content/python/how-to/upgrade.mdx
index 0e314693..33162f47 100644
--- a/apps/docs/content/python/how-to/upgrade.mdx
+++ b/apps/docs/content/python/how-to/upgrade.mdx
@@ -3,6 +3,6 @@ title: How to upgrade the Python version
description: Learn how to upgrade your python service's version
---
-You can upgrade or downgrade your Python service to a different major Python version by setting the `run.base` parameter in your `zerops.yml`. When you [trigger a new pipeline](/python/how-to/trigger-pipeline), Zerops will start new runtime container(s) with the required Python version. If you don't specify the `run.base` attribute in your `zerops.yml`, Zerops keeps the current Python version for your runtime.
+You can upgrade or downgrade your Python service to a different major Python version by setting the `run.base` parameter in your `zerops.yaml`. When you [trigger a new pipeline](/python/how-to/trigger-pipeline), Zerops will start new runtime container(s) with the required Python version. If you don't specify the `run.base` attribute in your `zerops.yaml`, Zerops keeps the current Python version for your runtime.
-If you want to build your application with a different major Python version, change the `build.base` parameter in your `zerops.yml`. The `build.base` is the required attribute.
+If you want to build your application with a different major Python version, change the `build.base` parameter in your `zerops.yaml`. The `build.base` is the required attribute.
diff --git a/apps/docs/content/python/overview.mdx b/apps/docs/content/python/overview.mdx
index c7ae04d3..1e6d8d36 100644
--- a/apps/docs/content/python/overview.mdx
+++ b/apps/docs/content/python/overview.mdx
@@ -23,9 +23,9 @@ As said, there is no need for coding yet, we have created a [Github repository
1. Log in/sign up to [Zerops GUI ↗](https://app.zerops.io)
-2. In the **Projects** box click on **Import a project** and paste in the following yml config ([source ↗](https://github.com/zeropsio/recipe-python-hello-world/blob/main/import-project/description.yml)):
+2. In the **Projects** box click on **Import a project** and paste in the following YAML config ([source ↗](https://github.com/zeropsio/recipe-python-hello-world/blob/main/import-project/description.yaml)):
-```yml
+```yaml
project:
name: my-first-project
services:
@@ -95,12 +95,12 @@ Do you have any questions? Check the step-by-step tutorial, browse the documenta
},
{
type: 'link',
- href: '/python/how-to/build-pipeline#add-zeropsyml-to-your-repository',
- label: 'zerops.yml',
+ href: '/python/how-to/build-pipeline#add-zeropsyaml-to-your-repository',
+ label: 'zerops.yaml',
customProps: {
icon: Icons['puzzle'],
description:
- 'See a full example of zerops.yml file to create your own app.',
+ 'See a full example of zerops.yaml file to create your own app.',
},
},
{
diff --git a/apps/docs/content/python/tutorial/quickstart.mdx b/apps/docs/content/python/tutorial/quickstart.mdx
index 7dbb8647..b2e384de 100644
--- a/apps/docs/content/python/tutorial/quickstart.mdx
+++ b/apps/docs/content/python/tutorial/quickstart.mdx
@@ -20,9 +20,9 @@ As said, there is no need for coding yet, we have created a [Github repository
1. Log in/sign up to [Zerops GUI ↗](https://app.zerops.io)
-2. In the **Projects** box click on **Import a project** and paste in the following yml config ([source ↗](https://github.com/zeropsio/recipe-python-hello-world/blob/main/import-project/description.yml)):
+2. In the **Projects** box click on **Import a project** and paste in the following YAML config ([source ↗](https://github.com/zeropsio/recipe-python-hello-world/blob/main/import-project/description.yaml)):
-```yml
+```yaml
project:
name: my-first-project
services:
diff --git a/apps/docs/content/python/tutorial/runtime-sql.mdx b/apps/docs/content/python/tutorial/runtime-sql.mdx
index b321e70f..37b776d3 100644
--- a/apps/docs/content/python/tutorial/runtime-sql.mdx
+++ b/apps/docs/content/python/tutorial/runtime-sql.mdx
@@ -23,7 +23,7 @@ In the detail of each step, you can find a link with more information about the
2. Create a project.
3. In the left menu, click on Import services, copy & paste the
- contents of the `import-services.yml` config file from the recipe
+ contents of the `import-services.yaml` config file from the recipe
repository of your choice. Then click on Import service.
2. Create a project.
3. In the left menu, click on Import services, copy & paste the
- contents of this yaml file and click on Import service.
+ contents of this yaml file and click on Import service.
type
enum, REQUIRED
- Specifies the service type and version. See [supported types](/references/importyml/type-list).
+ Specifies the service type and version. See [supported types](/references/import-yaml/type-list).
mode
@@ -293,7 +293,7 @@ The service configuration is used to define the services, environment variables,
-```yml
+```yaml
#yamlPreprocessor=on
services:
# REQUIRED: Name of your service
@@ -331,7 +331,7 @@ This yaml will create a `nodejs@latest` service named `service1` in `HA` (High-A
The `services` object allows you to define one or more services in the same yaml file and you can define the same parameters like `hostname`, `type`, `mode`, `envSecrets`, `objectStorageSize`, `objectStoragePolicy`, `objectStorageRawPolicy`, `buildFromGit`, `enableSubdomainAccess`, `priority` for each service no matter if it's runtime, database, etc.
:::caution
-The `yamlPreprocessor` option in your project & service import YAML is required to generate random secret values, passwords, and public/private key pairs. For more information, see the [yamlPreprocessor](/references/importyml/pre-processor) page.
+The `yamlPreprocessor` option in your project & service import YAML is required to generate random secret values, passwords, and public/private key pairs. For more information, see the [yamlPreprocessor](/references/import-yaml/pre-processor) page.
:::
### Vertical Autoscaling Configuration
@@ -435,7 +435,7 @@ The vertical autoscaling configuration is used to define the vertical autoscalin
-```yml
+```yaml
services:
- hostname: app
type: php-nginx@8.4
@@ -497,7 +497,7 @@ The horizontal autoscaling configuration is used to define the horizontal autosc
-```yml
+```yaml
services:
- hostname: app
type: php-nginx@8.4
@@ -534,7 +534,7 @@ The mount shared storage configuration is used to define the shared storage to m
-```yml
+```yaml
#yamlPreprocessor=on
services:
- hostname: app
@@ -646,7 +646,7 @@ services:
start: yarn start
```
-The `zeropsSetup: |-` parameter allows you to use a custom [zerops.yml](/zerops-yml/specification) configuration for the service.
+The `zeropsSetup: |-` parameter allows you to use a custom [zerops.yaml](/zerops-yaml/specification) configuration for the service.
## Export
diff --git a/apps/docs/content/references/ssh.mdx b/apps/docs/content/references/ssh.mdx
index d86693a0..922e20c4 100644
--- a/apps/docs/content/references/ssh.mdx
+++ b/apps/docs/content/references/ssh.mdx
@@ -16,14 +16,14 @@ Before establishing an SSH connection to your runtime service, you must first co
### 1. Configure VPN Access
-The [Zerops CLI (zCLI)](/references/cli) comes bundled with the [Zerops VPN](/references/vpn) client. To connect to your [Zerops project](/features/infrastructure#project):
+The [Zerops CLI (zCLI)](/references/cli) comes bundled with the [Zerops VPN](/references/vpn) client. To connect to your [Zerops project](/features/infrastructure#projects):
1. [Install and configure zCLI](/references/cli)
2. [Initialize the Zerops VPN connection](/references/vpn#start-vpn)
### 2. Establish SSH Connection
-Once your VPN session is active, you can connect to any [service](/features/infrastructure#services--containers) using its hostname:
+Once your VPN session is active, you can connect to any [service](/features/infrastructure#services) using its hostname:
```sh
ssh zeropsSetup
string or object
- Provide the name of the service from your zerops.yml (find it under `-setup: {name}`) or insert full [zerops.yml configuration file](/zerops-yml/specification).
+ Provide the name of the service from your zerops.yaml (find it under `-setup: {name}`) or insert full [zerops.yaml configuration file](/zerops-yaml/specification).
Specifies the service type and version.
- See what [Rust service types](/references/importyml/type-list#runtime-services) are currently supported. + See what [Rust service types](/references/import-yaml/type-list#runtime-services) are currently supported. |
:::info
-You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yml` in your repository.
+You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yaml` in your repository.
:::
### Skip the automatic pipeline once
@@ -61,13 +61,13 @@ To start a new build & deploy pipeline manually, use the Zerops CLI.
Follow these steps:
-1. Add `zerops.yml` to your repository.
+1. Add `zerops.yaml` to your repository.
2. [Install & setup zCLI](/references/cli) the Zerops command line tool.
3. Run `zcli push` command.
The `zcli push` command uploads your application code, builds and deploys your application in Zerops.
-The command triggers the [build pipeline](/rust/how-to/trigger-pipeline) defined in `zerops.yml`. `zerops.yml` must be in the working directory. The working directory is by default the current directory and can be changed using the
`--workingDir` flag.
+The command triggers the [build pipeline](/rust/how-to/trigger-pipeline) defined in `zerops.yaml`. `zerops.yaml` must be in the working directory. The working directory is by default the current directory and can be changed using the
`--workingDir` flag.
zCLI uploads all files and subdirectories of the working directory to Zerops and starts the build pipeline. If the `.gitignore` file is found, it is interpreted and the defined files and folders will be ignored.
@@ -90,14 +90,14 @@ Flags:
command is to be executed.
--versionName string Adds a custom version name. Automatically filled if the VERSIONNAME environment variable exists.
--workingDir string Sets a custom working directory. Default working directory is the current directory. (default "./")
- --zeropsYamlPath string Sets a custom path to the zerops.yml file relative to the working directory. By default zCLI
- looks for zerops.yml in the working directory.
+ --zeropsYamlPath string Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI
+ looks for zerops.yaml in the working directory.
```
zCLI commands are interactive, when you press enter after `zcli push`, you will be given a list of your projects to choose from.
:::info
-You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yml` in your repository.
+You can change the build and deploy pipeline when you need to. Just simply modify the `zerops.yaml` in your repository.
:::
## Manual deploy using Zerops CLI
@@ -106,7 +106,7 @@ To start only a deploy pipeline, use the Zerops CLI.
Follow these steps:
-1. Add [zerops.yml](/rust/how-to/build-pipeline#add-zeropsyml-to-your-repository) to your repository. Omit the build section.
+1. Add [zerops.yaml](/rust/how-to/build-pipeline#add-zeropsyaml-to-your-repository) to your repository. Omit the build section.
2. [Install & setup zCLI](/references/cli) the Zerops command line tool.
3. Run `zcli service deploy` command.
@@ -121,8 +121,8 @@ Usage:
Flags:
--archiveFilePath string If set, zCLI creates a tar.gz archive with the application code in the required path relative
to the working directory. By default, no archive is created.
- --deployGitFolder Sets a custom path to the zerops.yml file relative to the working directory. By default zCLI
- looks for zerops.yml in the working directory.
+ --deployGitFolder Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI
+ looks for zerops.yaml in the working directory.
-h, --help the service deploy command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
@@ -130,14 +130,14 @@ Flags:
command is to be executed.
--versionName string Adds a custom version name. Automatically filled if the VERSIONNAME environment variable exists.
--workingDir string Sets a custom working directory. Default working directory is the current directory. (default "./")
- --zeropsYamlPath string Sets a custom path to the zerops.yml file relative to the working directory. By default zCLI
- looks for zerops.yml in the working directory.
+ --zeropsYamlPath string Sets a custom path to the zerops.yaml file relative to the working directory. By default zCLI
+ looks for zerops.yaml in the working directory.
```
`pathToFileOrDir` defines a path to one or more directories and/or files relative to the working directory. The working directory is by default the current directory and can be changed using the
`--workingDir` flag.
-`zerops.yml` must be placed in the working directory.
+`zerops.yaml` must be placed in the working directory.
:::info
-You can change the deploy pipeline when you need to. Just simply modify the `zerops.yml` in your working directory.
+You can change the deploy pipeline when you need to. Just simply modify the `zerops.yaml` in your working directory.
:::
diff --git a/apps/docs/content/rust/how-to/upgrade.mdx b/apps/docs/content/rust/how-to/upgrade.mdx
index 7b5097f3..072d014f 100644
--- a/apps/docs/content/rust/how-to/upgrade.mdx
+++ b/apps/docs/content/rust/how-to/upgrade.mdx
@@ -3,6 +3,6 @@ title: How to upgrade the Rust version
description: Learn how to upgrade your rust service's version
---
-You can upgrade or downgrade your Rust service to a different major Rust version by setting the `run.base` parameter in your `zerops.yml`. When you [trigger a new pipeline](/rust/how-to/trigger-pipeline), Zerops will start new runtime container(s) with the required Rust version. If you don't specify the `run.base` attribute in your `zerops.yml`, Zerops keeps the current Rust version for your runtime.
+You can upgrade or downgrade your Rust service to a different major Rust version by setting the `run.base` parameter in your `zerops.yaml`. When you [trigger a new pipeline](/rust/how-to/trigger-pipeline), Zerops will start new runtime container(s) with the required Rust version. If you don't specify the `run.base` attribute in your `zerops.yaml`, Zerops keeps the current Rust version for your runtime.
-If you want to build your application with a different major Rust version, change the `build.base` parameter in your `zerops.yml`. The `build.base` is the required attribute.
+If you want to build your application with a different major Rust version, change the `build.base` parameter in your `zerops.yaml`. The `build.base` is the required attribute.
diff --git a/apps/docs/content/rust/overview.mdx b/apps/docs/content/rust/overview.mdx
index 01c3696a..f64fc464 100644
--- a/apps/docs/content/rust/overview.mdx
+++ b/apps/docs/content/rust/overview.mdx
@@ -23,9 +23,9 @@ As said, there is no need for coding yet, we have created a [Github repository
1. Log in/sign up to [Zerops GUI ↗](https://app.zerops.io)
-2. In the **Projects** box click on **Import a project** and paste in the following yml config ([source ↗](https://github.com/zeropsio/recipe-rust-hello-world/blob/main/import-project/description.yml)):
+2. In the **Projects** box click on **Import a project** and paste in the following YAML config ([source ↗](https://github.com/zeropsio/recipe-rust-hello-world/blob/main/import-project/description.yaml)):
-```yml
+```yaml
project:
name: my-first-project
services:
@@ -96,12 +96,12 @@ Do you have any questions? Check the step-by-step tutorial, browse the documenta
},
{
type: 'link',
- href: '/rust/how-to/build-pipeline#add-zeropsyml-to-your-repository',
- label: 'zerops.yml',
+ href: '/rust/how-to/build-pipeline#add-zeropsyaml-to-your-repository',
+ label: 'zerops.yaml',
customProps: {
icon: Icons['puzzle'],
description:
- 'See a full example of zerops.yml file to create your own app.',
+ 'See a full example of zerops.yaml file to create your own app.',
},
},
{
diff --git a/apps/docs/content/shared-storage/how-to/connect.mdx b/apps/docs/content/shared-storage/how-to/connect.mdx
index d1d8811f..2c4480f2 100644
--- a/apps/docs/content/shared-storage/how-to/connect.mdx
+++ b/apps/docs/content/shared-storage/how-to/connect.mdx
@@ -40,4 +40,4 @@ zsc connectSharedStorage sharedstorage0
zsc connectSharedStorage sharedDisk secondDisk
```
-Run this command from within your runtime container via web terminal, SSH, or in your `zerops.yml` file. For more details, see the [Zerops Setup Control documentation](/references/zsc).*/}
\ No newline at end of file
+Run this command from within your runtime container via web terminal, SSH, or in your `zerops.yaml` file. For more details, see the [Zerops Setup Control documentation](/references/zsc).*/}
\ No newline at end of file
diff --git a/apps/docs/content/static/overview.mdx b/apps/docs/content/static/overview.mdx
index 47ef80a6..0f533bd7 100644
--- a/apps/docs/content/static/overview.mdx
+++ b/apps/docs/content/static/overview.mdx
@@ -16,9 +16,9 @@ The Static service provides a streamlined way to serve static content through a
## Quick Start
-Add a Static service to your project by including this in your `zerops.yml`:
+Add a Static service to your project by including this in your `zerops.yaml`:
-```yaml title="zerops.yml"
+```yaml title="zerops.yaml"
zerops:
- setup: app
run:
@@ -43,9 +43,9 @@ The Static service allows you to configure URL routing and redirects through a s
### Basic Structure
-Configure routing in the `run.routing` section of your `zerops.yml`:
+Configure routing in the `run.routing` section of your `zerops.yaml`:
-```yaml title="zerops.yml"
+```yaml title="zerops.yaml"
run:
routing:
redirects:
@@ -60,7 +60,7 @@ run:
Use relative redirects to route paths within your application. When both `from` and `to` are relative paths, you can omit the `status` code to create a masked redirect that shows the content of the target page while preserving the original URL:
-```yaml title="zerops.yml"
+```yaml title="zerops.yaml"
routing:
redirects:
# Masked redirect - URL stays the same but shows content from index.html
@@ -94,7 +94,7 @@ When using `preservePath` with wildcards, ensure the `to` path ends with a `/` t
For redirecting between domains or to external URLs, use absolute redirects by including `http://` or `https://`. When using absolute URLs in either `from` or `to`, you must specify a `status` code:
-```yaml title="zerops.yml"
+```yaml title="zerops.yaml"
routing:
redirects:
# Redirect an old domain to a new one
@@ -120,7 +120,7 @@ Use `*` as a wildcard in your paths:
Example of complex domain management:
-```yaml title="zerops.yml"
+```yaml title="zerops.yaml"
run:
routing:
redirects:
@@ -145,7 +145,7 @@ When multiple redirects are configured, they follow Nginx's matching priority sy
For example:
-```yaml title="zerops.yml"
+```yaml title="zerops.yaml"
routing:
redirects:
# Exact match for homepage - standard redirect
@@ -185,7 +185,7 @@ The Static service includes built-in support for Prerender.io, making it easy to
### Custom Prerender Host
-If you're using a custom Prerender host, add it to environment variables in `zerops.yml`:
+If you're using a custom Prerender host, add it to environment variables in `zerops.yaml`:
```yaml
run:
@@ -216,7 +216,7 @@ This allows you to graduate to a more customizable setup while maintaining your
## Best Practices
1. **SPA Configuration**
- ```yaml title="zerops.yml"
+ ```yaml title="zerops.yaml"
routing:
redirects:
- from: /*
@@ -226,7 +226,7 @@ This allows you to graduate to a more customizable setup while maintaining your
Use this configuration for Single Page Applications to ensure all routes are handled by your application.
2. **Domain Migration**
- ```yaml title="zerops.yml"
+ ```yaml title="zerops.yaml"
routing:
redirects:
- from: https://old-domain.com/*
@@ -237,7 +237,7 @@ This allows you to graduate to a more customizable setup while maintaining your
3. **Complex Redirects**
Order your redirects from most specific to most general to ensure proper routing:
- ```yaml title="zerops.yml"
+ ```yaml title="zerops.yaml"
routing:
redirects:
- from: /specific-path/*
@@ -256,7 +256,7 @@ The Static service seamlessly integrates with modern frontend frameworks. It can
Here's a simple configuration for deploying an [Analog application](https://github.com/zeropsio/recipe-analog-static):
-```yaml title="zerops.yml"
+```yaml title="zerops.yaml"
zerops:
- setup: app
build:
@@ -284,7 +284,7 @@ You can enhance this basic setup by adding:
## Common Configurations
### Multiple Domain Management
-```yaml title="zerops.yml"
+```yaml title="zerops.yaml"
run:
routing:
redirects:
@@ -305,7 +305,7 @@ run:
```
### Development Setup
-```yaml title="zerops.yml"
+```yaml title="zerops.yaml"
run:
routing:
redirects:
diff --git a/apps/docs/content/zerops-yml/base-list.mdx b/apps/docs/content/zerops-yaml/base-list.mdx
similarity index 96%
rename from apps/docs/content/zerops-yml/base-list.mdx
rename to apps/docs/content/zerops-yaml/base-list.mdx
index 03d0d948..a35fd0af 100644
--- a/apps/docs/content/zerops-yml/base-list.mdx
+++ b/apps/docs/content/zerops-yaml/base-list.mdx
@@ -7,7 +7,7 @@ import data from '@site/static/data.json';
import UnorderedCodeList from 'docs/src/components/UnorderedCodeList';
-This is a list of all currently supported versions of technologies that can be used for build.base
and run.base
sections in `zerops.yml`.
+This is a list of all currently supported versions of technologies that can be used for build.base
and run.base
sections in `zerops.yaml`.
:::note
Versions listed on the same line are aliases of the same underlying version.
diff --git a/apps/docs/content/zerops-yml/cron.mdx b/apps/docs/content/zerops-yaml/cron.mdx
similarity index 97%
rename from apps/docs/content/zerops-yml/cron.mdx
rename to apps/docs/content/zerops-yaml/cron.mdx
index 2dfcc751..de530150 100644
--- a/apps/docs/content/zerops-yml/cron.mdx
+++ b/apps/docs/content/zerops-yaml/cron.mdx
@@ -5,7 +5,7 @@ description: Learn how to set up automated tasks and scheduled jobs in Zerops
Cron jobs are scheduled commands that execute automatically inside a service's containers based on defined timing rules.
-In Zerops, these jobs are configured in the `run` section of `zerops.yml` file under the `crontab` key.
+In Zerops, these jobs are configured in the `run` section of `zerops.yaml` file under the `crontab` key.
## Parameters
@@ -41,7 +41,7 @@ The schedule for when the task should run, specified in standard cron format usi
Specifies the directory where the command will be executed. If not set, it defaults to `/var/www`.
## Example Configurations
-Here’s a basic example of how to set up a cron job in your service's `zerops.yml`:
+Here’s a basic example of how to set up a cron job in your service's `zerops.yaml`:
```yaml
run:
diff --git a/apps/docs/content/zerops-yml/specification.mdx b/apps/docs/content/zerops-yaml/specification.mdx
similarity index 91%
rename from apps/docs/content/zerops-yml/specification.mdx
rename to apps/docs/content/zerops-yaml/specification.mdx
index fd3c0bd0..3eeb8c2f 100644
--- a/apps/docs/content/zerops-yml/specification.mdx
+++ b/apps/docs/content/zerops-yaml/specification.mdx
@@ -1,6 +1,6 @@
---
title: Zerops YAML Configuration
-description: Learn how you can configure your zerops yaml and use the available parameters.
+description: Learn how you can configure your Zerops.yaml and use the available parameters.
---
import data from '@site/static/data.json';
@@ -19,8 +19,8 @@ export const languages = [
{ name: "Nginx", link: "/nginx/how-to/build-pipeline" }
]
-The `zerops.yml` file is crucial for defining how Zerops should [build and deploy](/features/pipeline) your application.
-Add the `zerops.yml` file to the **root of your repository** and customize it to suit your application's needs.
+The `zerops.yaml` file is crucial for defining how Zerops should [build and deploy](/features/pipeline) your application.
+Add the `zerops.yaml` file to the **root of your repository** and customize it to suit your application's needs.
---
@@ -28,7 +28,7 @@ Add the `zerops.yml` file to the **root of your repository** and customize it to
## Basic Structure
-```yml title="zerops.yml"
+```yaml title="zerops.yaml"
zerops:
- setup: