add compose.yml

This commit is contained in:
Jean Franz 2024-05-18 01:25:22 -03:00
parent 6865a44e72
commit 4c64bc3e9c
2 changed files with 17 additions and 0 deletions

16
compose.yml Normal file
View File

@ -0,0 +1,16 @@
services:
drawdb:
image: node:20-alpine
container_name: drawdb
ports:
- 5173:5173
working_dir: /var/www/html
volumes:
- ./:/var/www/html
command: sh -c "npm install && npm run dev:docker"
networks:
- default
networks:
default:
driver: bridge

View File

@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"dev:docker": "vite --host",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"