docs: Improve README formatting for template.yml sections

This commit is contained in:
Mauricio Siu
2025-03-10 00:12:53 -06:00
parent 5b287d64a9
commit c8ca14f0f0

View File

@@ -76,20 +76,21 @@ Dokploy use a defined structure for the `template.yml` file, we have 4 sections
3. `env`: This is where we define the environment variables for the template. 3. `env`: This is where we define the environment variables for the template.
4. `mounts`: This is where we define the mounts for the template. 4. `mounts`: This is where we define the mounts for the template.
1. the `variables(Optional)` structure is the following:
- The `variables(Optional)` structure is the following:
```yaml ```yaml
1. variables: variables:
main_domain: ${domain} main_domain: ${domain}
my_domain: https://my-domain.com
2. variables: my_password: ${password:32}
my-domain: https://my-domain.com any_helper: ${you-can-use-any-helper}
``` ```
2. the `config` structure is the following: - The `config` structure is the following:
```yaml ```yaml
1. config: config:
domains: # Optional domains: # Optional
- serviceName: grafana # Required - serviceName: grafana # Required
port: 3000 # Required port: 3000 # Required