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
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user