This commit is contained in:
StefanoPutelli 2025-06-28 16:01:31 +02:00
commit 04267b3886
100 changed files with 16495 additions and 0 deletions

31
docker-compose.yaml Normal file
View file

@ -0,0 +1,31 @@
services:
# MongoDB
mongo:
image: mongo:7
restart: unless-stopped
environment:
MONGO_INITDB_DATABASE: inventory
volumes:
- mongo_data:/data/db
ports:
- "27017:27017"
# Backend TypeScript
backend:
build: ./backend
env_file: ./backend/.env
depends_on:
- mongo
ports:
- "6789:6789"
# Front-end Vite statico
frontend:
build: ./frontend
depends_on:
- backend
ports:
- "80:80"
volumes:
mongo_data: