Skip to content

Commit 013cc91

Browse files
Merge pull request #69 from DefangLabs/jordan/projects
Describe Projects
2 parents 451a003 + 45c01a0 commit 013cc91

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/concepts/projects.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Projects
3+
description: A _project_ refers to a cohesive collection of services which are defined and managed using a `compose.yml` file.
4+
sidebar_position: 200
5+
---
6+
7+
# Projects
8+
9+
A _project_ refers to a cohesive collection of services which are defined and managed using a `compose.yaml` file.
10+
11+
## Project Names
12+
13+
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.
14+
15+
The project name may then be used when performing project-wide operations such as listing services, tailing logs, or deprovisioning. For example:
16+
```
17+
defang services --project-name <project-name>
18+
defang tail --project-name <project-name>
19+
defang compose down --project-name <project-name>
20+
```
21+
22+
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.

0 commit comments

Comments
 (0)