Files
マルコメ 8f0d5834fe examples: replace the all docker-compose.yml with compose.yaml (#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 <jj@jjsweb.site>
2024-10-29 15:29:10 -07:00

36 lines
1.2 KiB
Makefile

.PHONY: build-development
build-development: ## Build the development docker image.
docker compose -f docker/development/compose.yaml build
.PHONY: start-development
start-development: ## Start the development docker container.
docker compose -f docker/development/compose.yaml up -d
.PHONY: stop-development
stop-development: ## Stop the development docker container.
docker compose -f docker/development/compose.yaml down
.PHONY: build-staging
build-staging: ## Build the staging docker image.
docker compose -f docker/staging/compose.yaml build
.PHONY: start-staging
start-staging: ## Start the staging docker container.
docker compose -f docker/staging/compose.yaml up -d
.PHONY: stop-staging
stop-staging: ## Stop the staging docker container.
docker compose -f docker/staging/compose.yaml down
.PHONY: build-production
build-production: ## Build the production docker image.
docker compose -f docker/production/compose.yaml build
.PHONY: start-production
start-production: ## Start the production docker container.
docker compose -f docker/production/compose.yaml up -d
.PHONY: stop-production
stop-production: ## Stop the production docker container.
docker compose -f docker/production/compose.yaml down