Skip to content

Use COMPOSE_BAKE=true for better performance #803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ with [FrankenPHP](https://frankenphp.dev) and [Caddy](https://caddyserver.com/)
## Getting Started

1. If not already done, [install Docker Compose](https://docs.docker.com/compose/install/) (v2.10+)
2. Run `docker compose build --pull --no-cache` to build fresh images
2. Run `COMPOSE_BAKE=true docker compose build --pull --no-cache` to build fresh images
3. Run `docker compose up --wait` to set up and start a fresh Symfony project
4. Open `https://localhost` in your favorite web browser and [accept the auto-generated TLS certificate](https://stackoverflow.com/a/15076602/1352334)
5. Run `docker compose down --remove-orphans` to stop the Docker containers.
Expand Down
2 changes: 1 addition & 1 deletion docs/existing-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Double-check the changes, revert the changes that you don't want to keep:

Build the Docker images:

docker compose build --pull --no-cache
COMPOSE_BAKE=true docker compose build --pull --no-cache

Start the project!

Expand Down
2 changes: 1 addition & 1 deletion docs/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ DATABASE_URL=mysql://${MYSQL_USER:-app}:${MYSQL_PASSWORD:-!ChangeMe!}@database:3
## Final steps
Rebuild the docker environment:
```shell
docker compose down --remove-orphans && docker compose build --pull --no-cache
docker compose down --remove-orphans && COMPOSE_BAKE=true docker compose build --pull --no-cache
```

Start the services:
Expand Down