Merge pull request #119 from JeanFranz73/main

feat: add Docker Compose
This commit is contained in:
lilit 2024-06-01 20:37:28 +03:00 committed by GitHub
commit e99f5a1692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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"