From 4c64bc3e9cdde5ecfe51ee120709457c4f7ddac4 Mon Sep 17 00:00:00 2001 From: Jean Franz Date: Sat, 18 May 2024 01:25:22 -0300 Subject: [PATCH] add compose.yml --- compose.yml | 16 ++++++++++++++++ package.json | 1 + 2 files changed, 17 insertions(+) create mode 100644 compose.yml diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..ea1a0f1 --- /dev/null +++ b/compose.yml @@ -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 diff --git a/package.json b/package.json index cff6fa5..1a369fc 100644 --- a/package.json +++ b/package.json @@ -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"