-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…71006) # Summary Rename docker compose file to `compose.yaml`. Update docker compose command. ## Description According to [official manuals](https://docs.docker.com/compose/intro/compose-application-model/#the-compose-file), > The default path for a Compose file is `compose.yaml` (preferred) or `compose.yml` that is placed in the working directory. Compose also supports `docker-compose.yaml` and `docker-compose.yml` for backwards compatibility of earlier versions. If both files exist, Compose prefers the canonical `compose.yaml`. ### Adding or Updating Examples - [x] The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - [x] Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md x-ref: [The Compose file](https://docs.docker.com/compose/intro/compose-application-model/#the-compose-file) x-ref: [docker-compose vs docker compose](https://docs.docker.com/compose/releases/migrate/#docker-compose-vs-docker-compose) Co-authored-by: JJ Kasper <[email protected]>
- Loading branch information
Showing
10 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
.PHONY: build-development | ||
build-development: ## Build the development docker image. | ||
docker compose -f docker/development/docker-compose.yml build | ||
docker compose -f docker/development/compose.yaml build | ||
|
||
.PHONY: start-development | ||
start-development: ## Start the development docker container. | ||
docker compose -f docker/development/docker-compose.yml up -d | ||
docker compose -f docker/development/compose.yaml up -d | ||
|
||
.PHONY: stop-development | ||
stop-development: ## Stop the development docker container. | ||
docker compose -f docker/development/docker-compose.yml down | ||
docker compose -f docker/development/compose.yaml down | ||
|
||
.PHONY: build-staging | ||
build-staging: ## Build the staging docker image. | ||
docker compose -f docker/staging/docker-compose.yml build | ||
docker compose -f docker/staging/compose.yaml build | ||
|
||
.PHONY: start-staging | ||
start-staging: ## Start the staging docker container. | ||
docker compose -f docker/staging/docker-compose.yml up -d | ||
docker compose -f docker/staging/compose.yaml up -d | ||
|
||
.PHONY: stop-staging | ||
stop-staging: ## Stop the staging docker container. | ||
docker compose -f docker/staging/docker-compose.yml down | ||
docker compose -f docker/staging/compose.yaml down | ||
|
||
.PHONY: build-production | ||
build-production: ## Build the production docker image. | ||
docker compose -f docker/production/docker-compose.yml build | ||
docker compose -f docker/production/compose.yaml build | ||
|
||
.PHONY: start-production | ||
start-production: ## Start the production docker container. | ||
docker compose -f docker/production/docker-compose.yml up -d | ||
docker compose -f docker/production/compose.yaml up -d | ||
|
||
.PHONY: stop-production | ||
stop-production: ## Stop the production docker container. | ||
docker compose -f docker/production/docker-compose.yml down | ||
docker compose -f docker/production/compose.yaml down |
File renamed without changes.
File renamed without changes.
File renamed without changes.