Skip to content

Commit

Permalink
Move healthcheck condition to docker compose override.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarciarubio committed Mar 27, 2024
1 parent fac5e7e commit f03504e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ services:
start_period: 10s

aspnetcore.examples.entityframeworkcore.api:
depends_on:
aspnetcore.examples.entityframeworkcore.data:
condition: service_healthy
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ services:
image: ${DOCKER_REGISTRY-}aspnetcoreexamplesentityframeworkcoreapi
container_name: aspnetcore.exmaples.entityframeworkcore.api
depends_on:
aspnetcore.examples.entityframeworkcore.data:
condition: service_healthy
- aspnetcore.examples.entityframeworkcore.data
build:
context: .
dockerfile: AspNetCore.Examples.EntityFrameworkCore.Api/Dockerfile

0 comments on commit f03504e

Please sign in to comment.