add production compose healthcheck
This commit is contained in:
@@ -10,6 +10,19 @@ Bu çalışma notu üretim dağıtımında kullanılacak kontrol sırasını tan
|
||||
- Sağlayıcı kullanılacaksa ilgili `GOOGLE_CLIENT_ID`, `STRIPE_SECRET_KEY`, `STRIPE_WEBHOOK_SECRET`, `RESEND_API_KEY` ve `TELEGRAM_BOT_TOKEN` değerleri.
|
||||
- `IHALEIST_USER_DATA_DIR` ve `IHALEIST_SHARED_DATA_DIR`: kalıcı volume altında, uygulama dışından erişilemeyen dizinler.
|
||||
|
||||
## Compose ile staging smoke testi
|
||||
|
||||
Kökteki `docker-compose.production.yml` production benzeri container, kalıcı `ihaleist-data` volume’u ve `/api/ready` healthcheck’i tanımlar. `AUTH_SECRET` zorunludur; sağlayıcı değişkenleri yalnız ilgili entegrasyon açılacaksa verilir.
|
||||
|
||||
```sh
|
||||
AUTH_SECRET="<uzun-rastgele-değer>" IHALEIST_IMAGE=ihaleist:ci IHALEIST_PORT=18080 \
|
||||
docker compose -f docker-compose.production.yml up -d
|
||||
docker compose -f docker-compose.production.yml ps
|
||||
AUTH_SECRET=dummy docker compose -f docker-compose.production.yml down
|
||||
```
|
||||
|
||||
Yerel compose smoke testi 6 Eylül 2026’da `healthy` duruma ulaştı; bu sonuç production deployment kanıtı değildir.
|
||||
|
||||
## Yayın öncesi
|
||||
|
||||
1. `npm ci`, `npm test` ve `npm run build` çalıştırılır; build chunk uyarıları yayın engeli değil, performans backlog’u olarak kaydedilir.
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"date": "2026-09-06",
|
||||
"image": "ihaleist-qa:local",
|
||||
"checks": {
|
||||
"composeConfig": "successful with AUTH_SECRET",
|
||||
"healthcheck": "healthy",
|
||||
"persistentVolume": "ihaleist-data mounted"
|
||||
},
|
||||
"scope": "Local Docker Compose smoke test; no production deployment or external side effect"
|
||||
}
|
||||
Reference in New Issue
Block a user