1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Починка adm8222222

This commit is contained in:
MoonTestUse1
2025-01-01 21:59:52 +06:00
parent ea769d192d
commit c4b8ec5cb1
2 changed files with 9 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ services:
timeout: 5s timeout: 5s
retries: 5 retries: 5
frontend: frontend:
build: build:
context: . context: .
@@ -27,6 +28,8 @@ services:
- /app/node_modules - /app/node_modules
environment: environment:
- NODE_ENV=development - NODE_ENV=development
ports:
- "5173:5173"
command: npm run dev command: npm run dev
networks: networks:
- app-network - app-network

View File

@@ -10,9 +10,14 @@ export default defineConfig({
} }
}, },
server: { server: {
host: true, // Важно для Docker
port: 5173, // Стандартный порт Vite
watch: {
usePolling: true // Важно для Docker на Windows/MacOS
},
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:8000', target: 'http://backend:8000',
changeOrigin: true changeOrigin: true
} }
} }