Skip to content

Commit 57f642a

Browse files
committed
move service name resolution
1 parent 4220181 commit 57f642a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/concepts/compose.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ You can create a `compose.yaml` file in the root of your project, or use the [`d
1616

1717
When you run `defang compose up`, Defang will read your `compose.yaml` file and [deploy](./deployments.md) the services named in that file to the cloud.
1818

19-
## Service Name Resolution
20-
21-
Defang identifies services by the [account username](./accounts.md) and the service name (as defined in the `compose.yaml` file). This means that if you have multiple Defang projects with the same service name, they will conflict with each other. We plan to provide a more robust system for managing service names in the future.
22-
2319
## Example of a Compose File
2420
Here is a basic `compose.yaml` file that contains all the required properties for deployment in Defang.
2521

@@ -61,6 +57,10 @@ services:
6157
# add service-level properties here
6258
```
6359

60+
:::info Service Name Resolution
61+
Defang identifies services by the [account username](./accounts.md) and the service name (as defined in the `compose.yaml` file). This means that if you have multiple Defang projects with the same service name, they will conflict with each other. We recommend using a different name for each service you define.
62+
:::
63+
6464
### `version`
6565
(Deprecated)
6666

@@ -81,7 +81,7 @@ The volume mounts for a container, reusable across services. This feature is not
8181
```
8282

8383
:::warning
84-
Defang does not support the `secrets` top-level property. Please read our [Configuration](/docs/concepts/configuration) page instead.
84+
Defang does not support the `secrets` top-level property. Please read our [Configuration](/docs/concepts/configuration) page for more.
8585
:::
8686

8787
## Compose Service-level Properties

0 commit comments

Comments
 (0)