Fix: Single container volume mount issue - prevent backend override
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user