From 5020509626b4669313814c77019ec45816ae8b46 Mon Sep 17 00:00:00 2001 From: 1ilit Date: Sat, 1 Jun 2024 20:53:07 +0300 Subject: [PATCH] Expose host directly in compose --- compose.yml | 2 +- package.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index ea1a0f1..08a7de7 100644 --- a/compose.yml +++ b/compose.yml @@ -7,7 +7,7 @@ services: working_dir: /var/www/html volumes: - ./:/var/www/html - command: sh -c "npm install && npm run dev:docker" + command: sh -c "npm install && npm run dev -- --host" networks: - default diff --git a/package.json b/package.json index 1a369fc..cff6fa5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,6 @@ "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"