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
description: Defang supports many of the properties of the Compose specification.
4
+
sidebar_position: 160
5
+
---
6
+
7
+
# Compose Support
8
+
9
+
This page outlines what properties of the [Compose specification](https://docs.docker.com/compose/compose-file/) Defang supports when writing a `compose.yaml` file.
10
+
For a more general overview of how Defang works with Compose, please see our [Compose](/docs/concepts/compose) page.
11
+
12
+
### Supported Compose Properties
13
+
|Property | Details
14
+
|-|-
15
+
|`image`|
16
+
17
+
### Optional Compose Properties
18
+
|Property | Details
19
+
|-|-
20
+
|`ports` | If left unspecified, a random port will be chosen.
21
+
|`memory` | If left unspecified, will resort to default.
22
+
|`environment`|
23
+
24
+
### Depreciated Compose Properties
25
+
|Property | Details
26
+
|-|-
27
+
|`version` | This top-level element is no longer needed in the Compose file. Instead, Defang uses the most recent schema supported for parsing the file.
28
+
29
+
### Unsupported Compose Properties
30
+
|Property | Details
31
+
|-|-
32
+
|`volume` | Volume mounts are not currently supported by Defang, but will not break the file if included.
33
+
34
+
35
+
36
+
### Configuration
37
+
You can define sensitive environment variables/configuration for Defang by writing out the variable name and leaving it in as a blank or `null` value in the Compose file. See our [Configuration](/docs/concepts/configuration) page for more.
0 commit comments