docs
docs copied to clipboard
docker compose up doesn't pick up docker-compose.dev.yml
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:
- Create a new file named
docker-compose.dev.yml - Copy & paste the contents from the documentation into this new file
- 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.