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
2. (optional) If you are using <ahref="https://docs.defang.io/docs/concepts/defang-byoc">Defang BYOC</a>, make sure you have properly <ahref="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html">authenticated your AWS account</a>.
11
11
12
-
## Deploying
12
+
## Development
13
13
14
-
1. Open the terminal and type `defang login`
15
-
2. Type `defang compose up` in the CLI.
16
-
3. Your app will be running within a few minutes.
14
+
To run the development container(s) locally, do:
17
15
18
-
## Local Development
16
+
```bash
17
+
docker compose -f compose.dev.yaml up --build
18
+
```
19
19
20
-
1. Run `docker compose -f compose.dev.yaml up --build`
20
+
Or to run the production container(s) locally, do:
21
+
22
+
```bash
23
+
POSTGRES_PASSWORD=postgres docker compose up --build
24
+
```
25
+
26
+
## Configuration
27
+
28
+
For this sample, you will need to provide the following [configuration](https://docs.defang.io/docs/concepts/configuration):
29
+
30
+
> Note that if you are using the 1-click deploy option, you can set these values as secrets in your GitHub repository and the action will automatically deploy them for you.
Deploy your application to the Defang Playground by opening up your terminal and typing:
45
+
```bash
46
+
defang compose up
47
+
```
48
+
49
+
### BYOC (AWS)
50
+
51
+
If you want to deploy to your own cloud account, you can use Defang BYOC:
52
+
53
+
1.[Authenticate your AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html), and check that you have properly set your environment variables like `AWS_PROFILE`, `AWS_REGION`, `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`.
54
+
2. Run in a terminal that has access to your AWS environment variables:
2. (optional) If you are using <ahref="https://docs.defang.io/docs/concepts/defang-byoc">Defang BYOC</a>, make sure you have properly <ahref="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html">authenticated your AWS account</a>.
Deploy your application to the Defang Playground by opening up your terminal and typing:
39
+
```bash
40
+
defang compose up
41
+
```
42
+
43
+
### BYOC (AWS)
44
+
45
+
If you want to deploy to your own cloud account, you can use Defang BYOC:
46
+
47
+
1.[Authenticate your AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html), and check that you have properly set your environment variables like `AWS_PROFILE`, `AWS_REGION`, `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`.
48
+
2. Run in a terminal that has access to your AWS environment variables:
0 commit comments