first commit

This commit is contained in:
2025-11-26 18:57:18 +03:00
commit 16c21a4e49
41 changed files with 1075 additions and 0 deletions

39
docker-compose.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: