Skip to content

Commit cbc9680

Browse files
authored
Merge pull request #222 from DefangLabs/lio/docker-compose-up-build
Add --build to docker compose up
2 parents d364971 + 2ef1c21 commit cbc9680

File tree

13 files changed

+14
-14
lines changed

13 files changed

+14
-14
lines changed

samples/angular-express/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This sample showcases how you could deploy a full-stack application with Angular
3131

3232
For development, we use two local containers, one for the frontend Angular service and one for the backend service in Express. It also uses Caddy as a web server for serving static files. To run the sample locally after cloning the repository, you can run on Docker by doing:
3333

34-
1. `docker compose -f compose.dev.yaml up`
34+
1. `docker compose -f compose.dev.yaml up --build`
3535

3636
---
3737

samples/bullmq-bullboard-redis/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `worker` service is the queue processor that will process the jobs added to
2424

2525
## Local Development
2626

27-
1. Run `docker compose -f compose.dev.yaml up`
27+
1. Run `docker compose -f compose.dev.yaml up --build`
2828

2929
---
3030

samples/csharp-dotnet/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This sample showcases how you could deploy a full-stack application with ASP.NET
3030

3131
For development, we use two local containers, one for the frontend service and one for the backend service in ASP.NET Core. It also uses Caddy as a web server for serving static files. To run the sample locally after cloning the repository, you can run on Docker by doing:
3232

33-
`docker compose -f compose.dev.yaml up`
33+
`docker compose -f compose.dev.yaml up --build`
3434

3535
---
3636

samples/elysia/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A basic [Elysia](https://elysiajs.com/) app running on [Bun](https://bun.sh/) wi
1818

1919
## Local Development
2020

21-
1. Run `docker compose -f compose.dev.yaml up`
21+
1. Run `docker compose -f compose.dev.yaml up --build`
2222

2323
---
2424

samples/fastapi-postgres/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This sample project demonstrates how to deploy FastAPI with PostgreSQL with Defa
1717

1818
## Local Development
1919

20-
1. Run `docker compose -f compose.dev.yaml up`
20+
1. Run `docker compose -f compose.dev.yaml up --build`
2121

2222
---
2323

samples/fastapi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This sample project demonstrates how to deploy FastAPI with Defang.
2020
To run your FastAPI app locally, you'll need to have Docker installed on your machine. You can then run:
2121

2222
```bash
23-
docker compose -f compose.yaml -f compose.dev.yaml up
23+
docker compose -f compose.yaml -f compose.dev.yaml up --build
2424
```
2525

2626
That will start your FastAPI app on `http://localhost:8000` with hot reloading enabled.

samples/nextjs-postgres/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This is a sample Next.js application that uses Postgres as a database. It is a s
1515
To run the application locally, you can use the following command:
1616

1717
```bash
18-
docker compose -f compose.dev.yaml up
18+
docker compose -f compose.dev.yaml up --build
1919
```
2020

2121
## Configuration

samples/nocodb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Access secret for the S3 bucket.
5151

5252
For development, we use a local postgres container and a volume mount for file uploads. To run the app locally, just run:
5353

54-
`docker compose --file compose.dev.yaml up`
54+
`docker compose --file compose.dev.yaml up --build`
5555

5656
---
5757

samples/phoenix-postgres/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Defang is the easiest way to deploy containerized apps like this Phoenix + Postg
1515
To run the application locally, you can use the following command:
1616

1717
```bash
18-
docker compose -f compose.yaml -f compose.dev.yaml up
18+
docker compose -f compose.yaml -f compose.dev.yaml up --build
1919
```
2020

2121
This will run Phoenix in development mode. If you need to run any commands in the container, after you have run the command above and started the container, you can run the command in a new terminal:

samples/rails/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This template is a member list project developed using Ruby on Rails, offering a
1414

1515
1. Open the working directory with Visual Studio Code or any editor which supports Dev Containers.
1616
2. Click on the bottom left corner of the window where you see "Reopen in Container".
17-
3. Open up a shell in the VS Code terminal and run `docker compose -f compose.dev.yaml up`.
17+
3. Open up a shell in the VS Code terminal and run `docker compose -f compose.dev.yaml up --build`.
1818

1919

2020
## Configuration

0 commit comments

Comments
 (0)