mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
8f0d5834fe
# 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>
9 lines
204 B
YAML
9 lines
204 B
YAML
services:
|
|
with-docker-multi-env-development:
|
|
build:
|
|
context: ../../
|
|
dockerfile: docker/development/Dockerfile
|
|
image: with-docker-multi-env-development
|
|
ports:
|
|
- "3001:3000"
|