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
Copy file name to clipboardExpand all lines: docs/concepts/accounts.md
+10-16Lines changed: 10 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,32 +6,26 @@ sidebar_position: 100
6
6
7
7
# Accounts
8
8
9
-
In this section, we'll be talking about a couple different topics related to accounts in Defang. First we'll cover authentication and how to create an account, and then we'll talk about how resources are organized within a cloud environment using your account info.
9
+
Below, we will cover account creation with Defang, and how resources are organized within a cloud environment using your account info.
10
10
11
-
:::tip Why do I need an account?
12
-
Defang requires an account so we can organize your resources and provide you with a way to manage them. We also use your account to authenticate you when you interact with [Defang Playground](./defang-playground.md) and the [Defang Portal](./portal.md).
13
-
14
-
Eventually, billing and payment information will be associated with your account.
15
-
:::
11
+
Defang requires an account so we can organize your resources and provide you with a way to manage them. We also use your account to authenticate you when you interact with [Defang Playground](./defang-playground.md) and the [Defang Portal](./portal.md). Billing and payment information is also associated with your account.
16
12
17
13
## Creating an Account
18
14
19
-
To create an account, login to Defang and accept the [terms of service](https://defang.io/terms-service.html) using the [CLI](/docs/concepts/authentication.md).
15
+
To create an account, log in to Defang and accept the [Terms of Service](https://defang.io/policies/terms-service/) using the [CLI](/docs/concepts/authentication.md).
16
+
17
+
At the moment, the only way to authenticate with Defang is through GitHub. We plan to offer other [authentication](/docs/concepts/authentication.md) providers in the future.
20
18
21
-
At the moment, the only way to authenticate with Defang is through GitHub. We plan to offer other authentication providers in the future.
19
+
:::tip
20
+
Keep in mind that your Defang account is separate from your [cloud provider account](./defang-byoc.md). You will need to authenticate with your cloud provider account separately to deploy services to your own cloud account.
21
+
:::
22
22
23
23
## Structure
24
24
25
-
Your GitHub username will be used as your Defang username and your Defang username is used to group all your services and to generate domains for your services with the following structure:
25
+
Your GitHub username will be used as your Defang username. Your Defang username is used to group all your [services](/docs/concepts/services) and generate domains for your services with the following structure:
26
26
27
27
```
28
28
<username>-<servicename>--<port>.prod1.defang.dev
29
29
```
30
30
31
-
:::warning
32
-
Keep in mind that your Defang account is separate from your [cloud provider account](./defang-byoc.md). You will need to authenticate with your cloud provider account separately to deploy services to your own cloud account.
33
-
:::
34
-
35
-
:::info
36
-
We plan to introduce a more robust system for managing accounts, permissions, service groups, etc. in the future.
37
-
:::
31
+
For more about domain structures, see our [Domains](/docs/concepts/domains#structure) page.
Copy file name to clipboardExpand all lines: docs/concepts/authentication.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,14 @@ description: Authenticating with Defang.
6
6
7
7
# Authentication
8
8
9
-
To do pretty much anything with Defang, you'll need to authenticate with the system. You can do this by running the following command:
9
+
To do pretty much anything with Defang, you'll need to authenticate with the system. You can do this by running the following command in the [CLI](/docs/getting-started):
10
10
11
11
```bash
12
12
defang login
13
13
```
14
14
15
-
This will prompt you to open a browser and log into your Defang account. For now, the only way to login is with GitHub, though we will offer other providers to authenticate in the future. Once you've logged in, you can close the browser and return to the terminal. You should see a message that you've successfully logged in.
15
+
This will prompt you to open a browser and log in to your [Defang account](/docs/concepts/accounts). For now, the only way to log in is with GitHub, though we will offer other providers to authenticate in the future. Once you've logged in, you can close the browser and return to the terminal. You should see a message that you've successfully logged in.
16
16
17
-
:::warning
17
+
:::tip
18
18
Keep in mind that your Defang account is separate from your [cloud provider account](/docs/concepts/defang-byoc). You will need to authenticate with your cloud provider account separately to deploy services to your own cloud account.
Copy file name to clipboardExpand all lines: docs/concepts/deployments.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,22 @@ When you deploy using Defang, whether it's with `defang compose up` with a [Comp
10
10
11
11
## Deploying Updates
12
12
13
-
When you run a deployment to update one or more services, Defang will also make sure to get your new services up and running before deprovisioning any old services so you don't have to worry about downtime.
13
+
When you run a deployment to update one or more [services](/docs/concepts/services), Defang will build new images for your services, and provision new resources to replace your existing services.
14
+
15
+
### Zero Downtime Deployments
16
+
17
+
Defang can deploy your services using different [modes](/docs/concepts/deployment-modes). When using the `production` mode, Defang will make sure the new replacement services are healthy before deprovisioning your existing services.
18
+
19
+
By default, using the `development` mode, Defang will deprovision your existing services before provisioning replacements. This helps reduce costs.
14
20
15
21
:::info
16
-
In [Defang BYOC](./defang-byoc.md), Defang will use your cloud provider account to build and store your images. In [Defang Playground](./defang-playground.md) we will build and store your images for you.
22
+
In [Defang BYOC](./defang-byoc.md), Defang uses your cloud provider account to build and store your images. In [Defang Playground](./defang-playground.md), we build and store your images for you.
17
23
:::
18
24
25
+
26
+
### Deployment Modes
27
+
28
+
As mentioned above, Defang offers different [deployment modes](/docs/concepts/deployment-modes): `development`, `staging`, and `production`. You can switch the modes using the `--mode` CLI flag.
19
29
:::warning
20
30
Workloads with GPUs do not support zero downtime deployments. If you have a workload with a GPU, you will experience downtime during updates.
21
31
:::
@@ -26,4 +36,4 @@ Defang defaults to "spot" instances. This is a cost-effective way to run your wo
26
36
27
37
:::info
28
38
In the future, we may provide a way to use "on-demand" instances for workloads that require more stability.
Copy file name to clipboardExpand all lines: docs/concepts/managed-storage/managed-postgres.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar_position: 1000
6
6
7
7
# Managed Postgres
8
8
9
-
Postgres, or PostgreSQL, is an advanced open-source relational database system known for its robustness, extensibility, and compliance with SQL standards, making it a popular choice for complex applications requiring reliable data integrity and sophisticated querying capabilities.
9
+
Postgres, or PostgreSQL, is a powerful open-source relational database system known for its robustness, extensibility, and compliance with SQL standards, making it ideal for complex applications requiring reliable data integrity and advanced querying. Defang can help you provision a managed Postgres instance.
10
10
11
11
## Current Support
12
12
@@ -75,13 +75,13 @@ For a smoother experience with Defang, we recommend using Postgres 14 for your c
75
75
76
76
## Final Snapshots
77
77
78
-
When a project is deployed to a production environment any managed postgres instances are automatically configured to create a snapshot of the database before deletion. The snapshot will be named with the following format
78
+
When a project is deployed to a [production environment](/docs/concepts/deployment-modes), any managed Postgres instances are automatically configured to create a snapshot of the database before deletion. The snapshot will be named with the following format:
Copy file name to clipboardExpand all lines: docs/concepts/networking.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ import TabItem from '@theme/TabItem';
11
11
Defang configures Security Groups, deploys applications to a private subnet and uses an Application Load Balancer to route traffic to your services from the public internet only when required.
12
12
13
13
:::tip
14
-
This page is about internal networking only. If you want to configure your services to be accessible from the public internet, check the [domains page](./domains.mdx).
14
+
This page is about internal networking only. If you want to configure your services to be accessible from the public internet, check the [Domains page](./domains.mdx).
15
15
:::
16
16
17
17
## Internal Communication
@@ -65,4 +65,4 @@ Internal communication between services in Defang BYOC follows the following pat
Copy file name to clipboardExpand all lines: docs/concepts/observability.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,21 @@
1
1
---
2
2
title: Observability
3
-
description: Monitor and debug your Defang services with the Defang CLI and portal.
3
+
description: Monitor and debug your Defang services with the Defang CLI and Portal.
4
4
sidebar_position: 600
5
5
---
6
6
7
7
# Observability
8
8
9
-
You can easily monitor and debug your Defang services at build and runtime using the Defang CLI and portal.
9
+
You can easily monitor and debug your Defang services at build and runtime using the Defang CLI and Portal.
10
10
11
-
When you deploy a service using the `defang compose up`, the CLI will automatically start tailing the build and runtime logs for your service. You can also view the logs for your service in the portal, or by using the `defang tail` command.
11
+
When you deploy a service using the `defang compose up`, the CLI will automatically start tailing the build and runtime logs for your service. You can also view the logs for your service in the Portal, or by using the `defang tail` command.
12
+
13
+
:::tip
14
+
Defang has a tutorial on how you can [monitor your services' status and logs](/docs/tutorials/monitoring-your-services).
15
+
:::
12
16
13
17
:::warning
14
-
Keep in mind that the Defang Portal only displays services deployed to Defang Playground.
18
+
Keep in mind that the [Defang Portal](./portal.md) only displays services deployed to Defang Playground.
15
19
:::
16
20
17
21
## Tail
@@ -25,4 +29,4 @@ defang tail --etag ua119053ehi2
25
29
26
30
## Architecture
27
31
28
-
In [BYOC](./defang-byoc.md), output is logged to the native logging tools within your cloud provider. The CLI then tails the output as needed.
32
+
In [Defang BYOC](./defang-byoc.md), output is logged to the native logging tools within your cloud provider. The CLI then tails the output as needed.
Copy file name to clipboardExpand all lines: docs/concepts/portal.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,13 @@ sidebar_position: 700
8
8
9
9
You can log into the Defang Portal at [portal.defang.dev](https://portal.defang.dev) using your [Defang account](./accounts.md) to view the state of your Defang services running in the Defang Playground for non-production applications.
10
10
11
-
You can use the Portal to get an overview of your services, view the logs for each service, quickly access exposed ports, view environment variables, and more.
12
-
11
+
You can use the Portal to get an overview of your [services](/docs/concepts/services), view the logs for each service, quickly access exposed ports, view environment variables, and more.
13
12
14
13
:::info
15
-
The Defang Portal displays services deployed to Playground.
14
+
The Defang Portal displays services deployed to Defang Playground.
16
15
To view services deployed to Defang BYOC, please check out [Monitoring Your Services](/docs/tutorials/monitoring-your-services).
17
16
:::
18
17
19
18
:::tip
20
-
We have a tool in place to help [debug](/docs/concepts/debug) your application in production.
21
-
:::
19
+
Need help with a failing deployment? Defang provides a tool to help [debug](/docs/concepts/debug)in your application.
Copy file name to clipboardExpand all lines: docs/concepts/services.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ Defang allows you deploy services defined as containers. You can define your ser
10
10
11
11
`<username>-<service-name>`
12
12
13
-
You can learn more about accounts and usernames in the [accounts page](./accounts.md).
13
+
You can learn more about accounts and usernames in the [Accounts page](./accounts.md).
14
14
15
-
:::tip Service Names
15
+
:::tip
16
16
Service names are defined in your Compose file or your Pulumi program.
17
17
:::
18
18
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).
19
+
Defang manages the deployment process for services. You can learn more about how services are deployed in the [Deployment page](./deployments.md).
20
20
21
21
:::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.
22
+
We plan to add support for other types of services in the future, including serverless functions.
0 commit comments