Skip to content

Commit 2faa8d9

Browse files
committed
add service name resolution from compose to services page
1 parent 57f642a commit 2faa8d9

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

docs/concepts/compose.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ services:
5757
# add service-level properties here
5858
```
5959

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.
60+
:::info
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. See our [Services](/docs/concepts/services) page for more.
6262
:::
6363

6464
### `version`

docs/concepts/services.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ Defang allows you deploy services defined as containers. You can define your ser
1010

1111
`<username>-<service-name>`
1212

13-
You can learn more about accounts and usernames in the [accounts page](./accounts.md).
13+
### Service Name Resolution
14+
As shown above, Defang identifies services by the [account username](./accounts.md) and the service name.
1415

15-
:::tip Service Names
16+
:::tip
1617
Service names are defined in your Compose file or your Pulumi program.
1718
:::
1819

19-
You can learn more about about how to define [services with Compose files here](./compose.md) and [services with Pulumi here](./pulumi.md). You can learn more about how services are deployed in the [deployment page](./deployments.md).
20+
This means that if you have multiple Defang projects with the same service name, they will conflict with each other. To avoid naming conflicts, we recommend using a different name for each service you define.
21+
22+
### Service Deployment
23+
Defang manages the deployment process for services. You can learn more about how services are deployed in the [Deployment page](./deployments.md).
2024

2125
:::info
22-
While this is the current state of the Defang model, we plan to add support for other types of services in the future, including serverless functions.
26+
We plan to add support for other types of services in the future, including serverless functions.
2327
:::

0 commit comments

Comments
 (0)