diff --git a/docker-compose.yml b/docker-compose.yml index 170c64b..0fb6681 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -40,6 +40,15 @@ services: networks: template: ipv4_address: 10.8.0.99 + nodejs: + image: node:16-alpine + container_name: template-node + ports: + - 5173:5173 + volumes: + - ./:/var/www + working_dir: /var/www + entrypoint: ["npm","run", "dev"] volumes: templatedb: diff --git a/package.json b/package.json index 9c1eaae..f89f1cd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "scripts": { - "dev": "vite", + "dev": "vite --host 0.0.0.0", "build": "vite build" }, "devDependencies": {