From fe8698efb2f6ceea09d3e5976f216de6c4f57c64 Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 1 Jun 2025 03:48:23 +0200 Subject: [PATCH] a --- docker-compose.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7fc5767..27a8bc3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,13 @@ version: '3.8' services: - nginx: - image: nginx:alpine - container_name: website-nginx - network_mode: host + web: + image: node:18-alpine + container_name: website-dev + working_dir: /app + ports: + - "8097:5173" volumes: - - /opt/docker/Website:/usr/share/nginx/html:ro - - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro + - /opt/docker/Website:/app + command: sh -c "npm install && npm run dev -- --host" restart: unless-stopped \ No newline at end of file