Fix: Remove .env bind mount to prevent directory mount issue, use env var instead

This commit is contained in:
salvacybersec
2025-11-11 05:54:31 +03:00
parent df203b6f32
commit 3c01dc63a4
2 changed files with 16 additions and 16 deletions

View File

@@ -30,10 +30,10 @@ services:
# Logs persistence
- oltalama-logs:/app/backend/logs
# .env file (optional bind mount - host'tan container'a)
# Eğer host'ta .env yoksa, entrypoint script container içinde oluşturur
# NOT: Host'ta .env dosyası yoksa, Docker onu dizin olarak oluşturabilir
# Entrypoint script bunu otomatik düzeltir
- ./backend/.env:/app/backend/.env:rw
# Bu durumda SESSION_SECRET sadece environment variable olarak kullanılır
# Alternatif: SESSION_SECRET'ı doğrudan environment variable olarak geçin
# - ./backend/.env:/app/backend/.env:rw
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s