Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit 9199bbd

Browse files
committed
docker-compose: cleaned example
1 parent ae22697 commit 9199bbd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ services:
88
image: my-java-app
99
container_name: my-java-app
1010
ports:
11-
- "4001:8080"
11+
- "4001:8080" # real port:app port

docker/my-java-app/DockerFile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##
2-
# Build Stage
2+
# Build Stage - This image won't be included in the release image. Only compiles.
33
##
44
FROM maven:3.6.1-jdk-8 AS build
55
COPY app /usr/src/app

docker/my-java-app/app/src/main/java/es/msanchez/frameworks/java/spring/boot/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public CommandLineRunner commandLineRunner(final ApplicationContext context) {
2626
return args -> {
2727
log.info("Beans provided by Spring Boot:");
2828
final List<String> beanNames = Arrays.asList(context.getBeanDefinitionNames());
29-
beanNames.stream().forEach(bean -> log.debug("Bean name '{}'", bean));
29+
beanNames.forEach(bean -> log.debug("Bean name '{}'", bean));
3030
};
3131

3232
}

docker/my-java-app/app/src/main/java/es/msanchez/frameworks/java/spring/boot/controller/HelloController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@RestController
77
public class HelloController {
88

9-
@RequestMapping("/")
9+
@RequestMapping("/hello-world")
1010
public String index() {
1111
return "Hello world from Docker!";
1212
}

0 commit comments

Comments
 (0)