mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Починка добавления через докер
This commit is contained in:
@@ -11,8 +11,8 @@ RUN npm install
|
|||||||
# Копируем исходный код
|
# Копируем исходный код
|
||||||
COPY frontend/ ./
|
COPY frontend/ ./
|
||||||
|
|
||||||
# Собираем приложение
|
# Открываем порт для разработки
|
||||||
RUN npm run build
|
EXPOSE 5173
|
||||||
|
|
||||||
# Держим контейнер запущенным
|
# Запускаем в режиме разработки
|
||||||
CMD ["tail", "-f", "/dev/null"]
|
CMD ["npm", "run", "dev", "--", "--host"]
|
||||||
@@ -38,4 +38,24 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name 185.139.70.62;
|
server_name 185.139.70.62;
|
||||||
return 301 http://itformhelp.ru$request_uri;
|
return 301 http://itformhelp.ru$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://frontend:5173;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /api {
|
||||||
|
proxy_pass http://backend:8000;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user