Fix: Single container volume mount issue - prevent backend override

This commit is contained in:
salvacybersec
2025-11-11 05:46:09 +03:00
parent eb2d114b9e
commit 2d94bdc4d1
2 changed files with 23 additions and 4 deletions

View File

@@ -29,8 +29,9 @@ services:
- oltalama-db:/app/backend/database
# Logs persistence
- oltalama-logs:/app/backend/logs
# .env persistence (SESSION_SECRET için)
- oltalama-env:/app/backend
# .env file (optional bind mount - host'tan container'a)
# Eğer host'ta .env yoksa, entrypoint script container içinde oluşturur
- ./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
@@ -45,8 +46,6 @@ volumes:
driver: local
oltalama-logs:
driver: local
oltalama-env:
driver: local
networks:
oltalama-network: