This commit is contained in:
2026-03-18 16:09:47 +07:00
parent ab3d27a4f1
commit 1ad90395dc
7 changed files with 364 additions and 22 deletions

View File

@@ -70,7 +70,8 @@ services:
dockerfile: ../docker/Dockerfile.frontend
container_name: pg-admin-ui
environment:
REACT_APP_API_URL: ${FRONTEND_API_URL:-http://localhost:3000/api}
# ✅ API URL определяется динамически из window.location в браузере
# Фронтенд обращается к /api, Nginx проксирует на backend
REACT_APP_ENV: ${NODE_ENV:-production}
# Frontend НЕ открыт наружу - только для nginx
depends_on: