Fix: Handle .env directory issue in bind mount and use relative API paths for single container
This commit is contained in:
@@ -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)})"]
|
||||
|
||||
Reference in New Issue
Block a user