mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Починка adm8222222
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user