mirror of
https://github.com/serty2005/rmser.git
synced 2026-02-04 19:02:33 -06:00
add front spa-app
This commit is contained in:
16
rmser-app/docker-compose.yml
Normal file
16
rmser-app/docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user