docker düzenlemesi

This commit is contained in:
Sedat ÖZTÜRK 2025-11-03 14:43:49 +03:00
parent 4e555e9cc6
commit e939a83bc5
3 changed files with 14 additions and 5 deletions

View file

@ -25,6 +25,9 @@ services:
image: devops.sozsoft.com/kurs/kurs-platform-api:latest
container_name: kurs-api
profiles: ["api"]
depends_on:
sql:
condition: service_healthy
environment:
- ASPNETCORE_ENVIRONMENT=Dev
ports:

View file

@ -51,4 +51,10 @@ services:
db:
aliases:
- sql
healthcheck:
test: ["CMD-SHELL", "sqlcmd -S localhost -U sa -P NvQp8s@l -Q 'SELECT 1'"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
restart: unless-stopped

View file

@ -16,12 +16,12 @@ cd ~/kurs-platform/configs/deployment
docker compose -f docker-compose-app.yml -f docker-compose-app.${ENV}.yml --profile api pull
docker compose -f docker-compose-app.yml -f docker-compose-app.${ENV}.yml --profile api up -d
API_URL="https://api.sozsoft.com/api/app/platform-tenant?skipCount=0&maxResultCount=1"
# API_URL="https://api.sozsoft.com/api/app/platform-tenant?skipCount=0&maxResultCount=1"
echo "kurs-api açılması bekleniyor: $API_URL"
until curl -fsS --max-time 5 -o /dev/null "$API_URL"; do
sleep 2
done
# echo "kurs-api açılması bekleniyor: $API_URL"
# until curl -fsS --max-time 5 -o /dev/null "$API_URL"; do
# sleep 2
# done
docker compose -f docker-compose-app.yml -f docker-compose-app.${ENV}.yml --profile ui pull
docker compose -f docker-compose-app.yml -f docker-compose-app.${ENV}.yml --profile ui up -d