init
This commit is contained in:
commit
04267b3886
100 changed files with 16495 additions and 0 deletions
31
docker-compose.yaml
Normal file
31
docker-compose.yaml
Normal 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:
|
Loading…
Add table
Add a link
Reference in a new issue