February 2018
Intermediate to advanced
356 pages
9h 10m
English
Before we run our application in a Docker container, we need to create a YAML file to configure a container profile. The new YAML file should be named as application-container.yaml because we will use the container profile to run it. Remember, we configured the entrypoint on pom.xml in the previous section.
Let's create our new file. The file should be the same content as described in the following snippet:
spring: data: mongodb: database: cms host: mongodb port: 27017
The host must be changed for MongoDB. We have been running the MongoDB container with this name in the Preparing a MongoDB section. It is an important configuration, and we need to pay attention at this point. We cannot use localhost anymore ...