add front spa-app

This commit is contained in:
2025-11-30 06:31:23 +03:00
parent 714844058f
commit 8aced994de
20 changed files with 3358 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
services:
frontend:
image: node:20-alpine
working_dir: /app
volumes:
- ./:/app
# Исключаем node_modules контейнера, чтобы не конфликтовать с хостом
# (хотя для dev-режима часто работает и сквозное монтирование)
- /app/node_modules
ports:
- "5173:5173"
# Для Windows/Mac, чтобы видеть бэкенд на хосте
extra_hosts:
- "host.docker.internal:host-gateway"
command: npm run dev