feat: Add Docker support with development and production configurations

This commit is contained in:
2025-08-04 15:56:11 +02:00
parent ec1dbaa2a7
commit 6aa0a659cc
8 changed files with 216 additions and 2 deletions

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

@@ -0,0 +1,28 @@
version: '3.8'
services:
inventory-app-dev:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "0.0.0.0:3000:3000"
volumes:
# Mount source code for hot reload
- .:/app
- /app/node_modules
# Mount database file to persist data
- ./database.db:/app/database.db
environment:
- NODE_ENV=development
- WATCHPACK_POLLING=true
- HOSTNAME=0.0.0.0
restart: unless-stopped
stdin_open: true
tty: true
networks:
- inventory-network
networks:
inventory-network:
driver: bridge