Skip to content

Commit

Permalink
update compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gilber committed Oct 27, 2023
1 parent b044de3 commit 33e4d84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33e4d84

Please sign in to comment.