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
retries: 5
frontend:
build:
context: .
@@ -27,6 +28,8 @@ services:
- /app/node_modules
environment:
- NODE_ENV=development
ports:
- "5173:5173"
command: npm run dev
networks:
- app-network

View File

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