Fix: Remove .env bind mount to prevent directory mount issue, use env var instead
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user