Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/concepts/projects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: Projects
description: A _project_ refers to a cohesive collection of services which are defined and managed using a `compose.yml` file.
sidebar_position: 200
---

# Projects

A _project_ refers to a cohesive collection of services which are defined and managed using a `compose.yaml` file.

## Project Names

The _project name_ can be defined in the compose file with [the `name` property](https://docs.docker.com/compose/compose-file/04-version-and-name/#name-top-level-element), otherwise the base name of the project directory will be used.

The project name may then be used when performing project-wide operations such as listing services, tailing logs, or deprovisioning. For example:
```
defang services --project-name <project-name>
defang tail --project-name <project-name>
defang compose down --project-name <project-name>
```

By default `defang` will use the project name from the `compose.yaml` file in the working directory. The [`--project-name` CLI flag](/docs/cli/defang) may be used when running `defang` from outside the working directory.