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

View File

@@ -1,24 +1,11 @@
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
command: npm run build && npm start
env_file:
- ./backend/.env
ports:
- "4000:4000"
depends_on:
- mongo
frontend:
build: ./frontend
@@ -32,6 +19,3 @@ services:
- "5173:5173"
depends_on:
- backend
volumes:
mongo-data: