You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sites/platform/src/create-apps/app-reference/_index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Manually defining a stack in a composable image is typically simpler than adding
38
38
39
39
Consider using a composable image when these factors are important:
40
40
- Your application requires multiple runtimes and tools, or different versions of the same package.
41
-
- You build your own services. See the [Building your own services](#building-services) section below.
41
+
- You build your own services.
42
42
- You want the ability to install _all_ the packages you need in your application container, ensuring that an application works on any machine.<BR>
43
43
In a composable image, you can accomplish this by using supported Nix channels. This method ensures app consistency and helps to streamline the development, testing, and deployment processes.
44
44
@@ -62,11 +62,11 @@ Consider using a composable image when these factors are important:
62
62
63
63
## Keys used in each image type
64
64
65
-
Only the single-runtime image supports the [``build``](/create-apps/app-reference/single-runtime-image.md#build), [``dependencies``](/create-apps/app-reference/single-runtime-image.md#dependencies), and [``runtime``](/create-apps/app-reference/single-runtime-image.md#druntime) keys. In a composable image, the equivalent is the [`stack`](/create-apps/app-reference/composable-image.md#stack) key.
65
+
Only the single-runtime image supports the [``build``](/create-apps/app-reference/single-runtime-image.md#build), [``dependencies``](/create-apps/app-reference/single-runtime-image.md#dependencies), and [``runtime``](/create-apps/app-reference/single-runtime-image.md#runtime) keys. In a composable image, the equivalent is the [`stack`](/create-apps/app-reference/composable-image.md#stack) key.
66
66
67
67
Otherwise, the same keys are available for both image types. Differences in syntax or meaning are noted in each key's topic - see the [Image properties](/create-apps/image-properties.md) section for the topics that describe each key.
68
68
69
69
## Multi-app projects
70
-
In a multiple application context, you can use a mix of single-runtime images and composable images. See the examples in the [single-runtime image](/create-apps/app-reference/single-runtime-image.md#combine-single-runtime-and-composable-images) topic and [composable](/create-apps/app-reference/composable-image.md#combine-single-runtime-and-composable-images) image topic.
70
+
In a multiple application context, you can use a mix of single-runtime images and composable images. See the examples in the [single-runtime image](/create-apps/app-reference/single-runtime-image.md#combine-single-runtime-and-composable-images) topic and [composable image](/create-apps/app-reference/composable-image.md#combine-single-runtime-and-composable-images) topic.
Copy file name to clipboardExpand all lines: sites/platform/src/create-apps/app-reference/single-runtime-image.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,3 +212,36 @@ The following table shows the properties that can be set in `sizing_hints`:
212
212
| `reserved_memory` | `integer` | 70 | 70 | The amount of memory reserved in MB. |
213
213
214
214
See more about [PHP-FPM workers and sizing](/languages/php/fpm.md).
215
+
216
+
## Combine single-runtime and composable images {#combine-single-runtime-and-composable-images}
217
+
218
+
In a [multiple application context](/create-apps/multi-app/_index.md),
219
+
you can use a mix of single-runtime images and [composable images](/create-apps/app-reference/composable-image.md).
220
+
221
+
222
+
The following sample configuration includes two applications:
223
+
- ``frontend`` – uses a single-runtime image
224
+
- ``backend`` – uses a composable image<br>
225
+
In this app, PHP is the primary runtime and is started automatically (PHP-FPM also starts automatically when PHP is the primary runtime). For details, see the [PHP as a primary runtime](/create-apps/app-reference/composable-image.md#php-as-a-primary-runtime) section in the Composable image topic.
226
+
227
+
228
+
```yaml {configFile="app"}
229
+
applications:
230
+
frontend:
231
+
# this app uses the single-runtime image with a specific node.js runtime
232
+
type: 'nodejs:{{% latest "nodejs" %}}'
233
+
backend:
234
+
# this app uses the composable image and specifies two runtimes
Copy file name to clipboardExpand all lines: sites/platform/src/create-apps/image-properties/disk.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Optional in [single-runtime](/create-apps/app-reference/single-runtime-image.md#
10
10
11
11
The maximum total space available to all apps and services is set by the storage in your plan settings.
12
12
When deploying your project, the sum of all `disk` keys defined in app and service configurations
13
-
must be *equal or less* than the plan storage size.
13
+
cannot exceed the available storage in your plan.
14
14
15
15
So if your *plan storage size* is 5 GB, you can, for example, assign it in one of the following ways:
16
16
@@ -23,7 +23,10 @@ You need to either increase your plan's storage or decrease the `disk` values yo
23
23
24
24
You configure the disk size in [MB](/glossary/_index.md#mb). Your actual available disk space is slightly smaller with some space used for formatting and the filesystem journal. When checking available space, note whether it’s reported in MB or MiB.
25
25
26
-
### Altering `disk` values
26
+
If you need more storage to fit the sum of all `disk` keys, it is necessary to [switch plans](/administration/pricing.md#switch-plans). This can only be done by people with the [manage plans permission](/administration/users.md#organization-permissions).
27
+
28
+
29
+
### Backups and altering `disk` values
27
30
28
31
It's a best practice to [back up your environment](/environments/backup.md)**before and after** you increase **or** decrease the `disk` value (the amount of allocated storage space) of an app or service.
0 commit comments