Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions content/guides/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,11 @@ for the application you containerized in the previous section. This includes:

### Add a local database and persist data

You can use containers to set up local services, like a database. In this section, you'll update the `docker-compose.yaml` file to define a database service and a volume to persist data. Also, this particular application uses a system property to define the database type, so you'll need to update the `Dockerfile` to pass in the system property when starting the app.
You can use containers to set up local services, like a database. In this section, you'll update the `compose.yaml` file to define a database service and a volume to persist data. Also, this particular application uses a system property to define the database type, so you'll need to update the `Dockerfile` to pass in the system property when starting the app.

In the cloned repository's directory, open the `docker-compose.yaml` file in an IDE or text editor. Your Compose file has an example database service, but it'll require a few changes for your unique app.
In the cloned repository's directory, open the `compose.yaml` file in an IDE or text editor. Your Compose file has an example database service, but it'll require a few changes for your unique app.

In the `docker-compose.yaml` file, you need to do the following:
In the `compose.yaml` file, you need to do the following:

- Uncomment all of the database instructions. You'll now use a database service
instead of local storage for the data.
Expand All @@ -342,7 +342,7 @@ In the `docker-compose.yaml` file, you need to do the following:
overrides the default value defined in
`spring-petclinic/src/main/resources/application-postgres.properties`.

The following is the updated `docker-compose.yaml` file. All comments have been removed.
The following is the updated `compose.yaml` file. All comments have been removed.

```yaml {hl_lines="7-29"}
services:
Expand Down Expand Up @@ -471,7 +471,7 @@ In the `Dockerfile` you added a new stage labeled `development` based on the `ex

The current Compose file doesn't start your development container. To do that, you must update your Compose file to target the development stage. Also, update the port mapping of the server service to provide access for the debugger.

Open the `docker-compose.yaml` and add the following instructions into the file.
Open the `compose.yaml` and add the following instructions into the file.

```yaml {hl_lines=["5","8"]}
services:
Expand Down Expand Up @@ -617,8 +617,8 @@ Use Compose Watch to automatically update your running Compose services as you
edit and save your code. For more details about Compose Watch, see
[Use Compose Watch](/manuals/compose/how-tos/file-watch.md).

Open your `docker-compose.yaml` file in an IDE or text editor and then add the
Compose Watch instructions. The following is the updated `docker-compose.yaml`
Open your `compose.yaml` file in an IDE or text editor and then add the
Compose Watch instructions. The following is the updated `compose.yaml`
file.

```yaml {hl_lines="14-17"}
Expand Down
Loading