0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-07-02 03:22:57 +00:00
CleanArchitecture/docker-compose.yml
Alexander Konietzko 17fdab8e06
Add health checks
2023-07-15 13:33:11 +02:00

25 lines
449 B
YAML

version: "3"
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- 80:80
depends_on:
- db
links:
- db
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost/healthz"]
interval: 30s
timeout: 5s
retries: 3
db:
image: mcr.microsoft.com/mssql/server
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Password123!#
ports:
- 1433:1433