Prod ve Dev birbirinden izole edildi.

This commit is contained in:
2025-11-27 18:26:04 +03:00
parent 8f05f40bb2
commit 2e410fb402
4 changed files with 50 additions and 18 deletions

39
docker-compose.dev.yml Normal file
View File

@@ -0,0 +1,39 @@
version: "3.9"
services:
mongo:
image: mongo:7
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
backend:
build: ./backend
command: npm run dev
volumes:
- ./backend:/app
- /app/node_modules
env_file:
- ./backend/.env
ports:
- "4000:4000"
depends_on:
- mongo
frontend:
build: ./frontend
command: npm run dev -- --host --port 5173
volumes:
- ./frontend:/app
- /app/node_modules
env_file:
- ./frontend/.env
ports:
- "5173:5173"
depends_on:
- backend
volumes:
mongo-data: