Skip to content

Commit e5c9c25

Browse files
fix(docker-compose): update environment variables and improve health check configurations
- Changed LOG_LEVEL default from INFO to WARNING for better logging control. - Added AUTH_ENABLED and ADMIN_PASSWORD environment variables for enhanced security. - Updated health check command for watchtower to include both api-sentinel-monitor and api-sentinel-changelog.
1 parent 435a6ec commit e5c9c25

2 files changed

Lines changed: 22 additions & 15 deletions

File tree

docker-compose.prod.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# Sunucuda deploy için production compose
2-
# Kullanım:
3-
# 1. Bu dosyayı ve .env dosyasını sunucuya kopyalayın
4-
# 2. prometheus/ ve grafana/ klasörlerini de kopyalayın
5-
# 3. .env dosyasını düzenleyin (SECRET_KEY mutlaka değiştirin!)
6-
# 4. docker compose -f docker-compose.prod.yml up -d
1+
# Sunucuda deploy icin production compose
2+
# Kullanim:
3+
# 1. Bu dosyayi ve .env dosyasini sunucuya kopyalayin
4+
# 2. .env dosyasini duzenleyin (SECRET_KEY ve ADMIN_PASSWORD mutlaka degistirin!)
5+
# 3. docker compose -f docker-compose.prod.yml up -d
76

87
services:
98
schema-monitor:
@@ -15,11 +14,14 @@ services:
1514
- schema-data:/app/data
1615
- schema-files:/app/schemas
1716
environment:
18-
- LOG_LEVEL=${LOG_LEVEL:-INFO}
17+
- LOG_LEVEL=${LOG_LEVEL:-WARNING}
1918
- CHECK_INTERVAL_DEFAULT=${CHECK_INTERVAL_DEFAULT:-5m}
2019
- DB_PATH=/app/data/schemas.db
2120
- SCHEMA_DIR=/app/schemas
2221
- SECRET_KEY=${SECRET_KEY}
22+
- AUTH_ENABLED=${AUTH_ENABLED:-true}
23+
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-}
24+
- ALERT_COOLDOWN_SECONDS=${ALERT_COOLDOWN_SECONDS:-300}
2325
networks:
2426
- sentinel-net
2527
healthcheck:
@@ -36,7 +38,7 @@ services:
3638
volumes:
3739
- changelog-data:/app/data
3840
environment:
39-
- LOG_LEVEL=${LOG_LEVEL:-INFO}
41+
- LOG_LEVEL=${LOG_LEVEL:-WARNING}
4042
networks:
4143
- sentinel-net
4244
depends_on:
@@ -58,12 +60,10 @@ services:
5860
cpus: '0.05'
5961
environment:
6062
- DOCKER_API_VERSION=1.44
61-
- REPO_USER=sistem@ayssoft.com
62-
- REPO_PASS=Na9528692
6363
volumes:
6464
- /var/run/docker.sock:/var/run/docker.sock
6565
- /root/.docker/config.json:/config.json
66-
command: --interval 300 --cleanup api-sentinel
66+
command: --interval 300 --cleanup api-sentinel-monitor api-sentinel-changelog
6767
networks:
6868
- sentinel-net
6969

schema-monitor/templates/base.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ <h3 class="text-sm font-semibold text-gray-900 dark:text-white">Bildirimler</h3>
438438
<template x-for="n in notifications" :key="n.id">
439439
<a :href="'/changes/' + n.id"
440440
class="block px-4 py-3 hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors"
441-
:class="{ 'bg-indigo-50/50 dark:bg-indigo-950/20': !n.read }"
441+
:class="{ 'bg-indigo-50/50 dark:bg-indigo-950/20': !n.read, 'opacity-60': n.read }"
442442
@click="markRead(n.id)">
443443
<div class="flex items-start gap-3">
444444
<!-- Severity ikonu -->
@@ -473,9 +473,16 @@ <h3 class="text-sm font-semibold text-gray-900 dark:text-white">Bildirimler</h3>
473473
x-text="'v' + n.old_version + ' → v' + n.new_version">
474474
</p>
475475
</div>
476-
<!-- Okunmamis gostergesi -->
477-
<div x-show="!n.read" class="flex-shrink-0">
478-
<span class="flex h-2 w-2 rounded-full bg-indigo-500"></span>
476+
<!-- Okunma durumu gostergesi -->
477+
<div class="flex-shrink-0">
478+
<template x-if="!n.read">
479+
<span class="flex h-2 w-2 rounded-full bg-indigo-500"></span>
480+
</template>
481+
<template x-if="n.read">
482+
<svg class="w-4 h-4 text-green-500 dark:text-green-400" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
483+
<path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5" />
484+
</svg>
485+
</template>
479486
</div>
480487
</div>
481488
</a>

0 commit comments

Comments
 (0)