docs icon indicating copy to clipboard operation
docs copied to clipboard

docker compose up doesn't pick up docker-compose.dev.yml

Open walshta opened this issue 1 year ago • 0 comments

Is this a docs issue?

  • [X] My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

In the Use Compose to develop locally section, the instructions state to do the following:

  1. Create a new file named docker-compose.dev.yml
  2. Copy & paste the contents from the documentation into this new file
  3. Run docker compose up --build

The docker compose up --build command uses the standard docker-compose.yml which doesn't target the development stage added to the Dockerfile in the previous section. Since nothing is targeting this stage it is skipped and never launched so there is nothing to attach the debugger to in the next section.

Location

https://docs.docker.com/language/java/develop/#use-compose-to-develop-locally

Suggestion

Either add the command to specify the docker compose file to use, or target the stage in the docker-compose.yml file and not create a new file.

walshta avatar Jun 22 '24 20:06 walshta