Fix: Handle .env directory issue in bind mount and use relative API paths for single container

This commit is contained in:
salvacybersec
2025-11-11 05:51:07 +03:00
parent 3afd2f2ba2
commit 1a45487cf1
4 changed files with 51 additions and 39 deletions

View File

@@ -31,6 +31,8 @@ services:
- 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
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]