From 33e4d84ae665c3a0bb70d18a39edf7609d87f7fc Mon Sep 17 00:00:00 2001 From: Paul Gilber Date: Fri, 27 Oct 2023 10:38:01 +0000 Subject: [PATCH] update compose.yaml --- README.md | 2 +- compose.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c4d6a67..d64f9ca 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ services: ```sh docker-compose up # builds application image when it doesn't exist docker-compose up --build # rebuild application image -docker-compose down # remove containers and network created by docker compose +docker-compose down # remove containers, networks and volumes created by docker compose ``` ## Testing Application Container Image with Container Structure Tests diff --git a/compose.yaml b/compose.yaml index cea757a..a0c99e9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -31,11 +31,11 @@ services: depends_on: mysql: condition: service_healthy # healthy status is indicated by `healthcheck` keyword - build: - image: demoapp-backend:latest # use built image - # Build image from Containerfile - # context: . - # dockerfile: Containerfile.multistage + image: demoapp-backend:latest # use built image + # Build image from Containerfile + # build: + # context: . + # dockerfile: Containerfile.multistage environment: # Externalized Spring Configuration: https://docs.spring.io/spring-boot/docs/1.5.6.RELEASE/reference/html/boot-features-external-config.html SPRING_DATASOURCE_USERNAME: root