From dd054c6f01fd9ee2fa73249e459cda5ec9eff337 Mon Sep 17 00:00:00 2001 From: evansvl Date: Sat, 17 Jan 2026 19:54:45 +0300 Subject: [PATCH] Update environment variables and Docker Compose configuration for frontend port --- .env.example | 4 ++-- docker-compose.yml | 14 +++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 4e88994..76dcdc8 100644 --- a/.env.example +++ b/.env.example @@ -20,5 +20,5 @@ VITE_APP_LOGO=V # ===== RUNTIME VARIABLES ===== # Port to expose the frontend on host machine -# Default: 3000 (http://localhost:3000) -CABINET_PORT=3000 +# Default: 3020 (http://localhost:3020) +CABINET_PORT=3020 diff --git a/docker-compose.yml b/docker-compose.yml index 2a5c551..2ffd9bb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,13 +16,21 @@ services: container_name: cabinet_frontend restart: unless-stopped env_file: - - .env # Загрузить переменные из .env файла + - .env # Загрузить переменные из .env файла ports: # Маппинг: <хост-порт>:<контейнер-порт> # Внутри контейнера nginx слушает на порту 80 - - "${CABINET_PORT:-3000}:80" + - '${CABINET_PORT:-3020}:80' healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80/"] + test: + [ + 'CMD', + 'wget', + '--no-verbose', + '--tries=1', + '--spider', + 'http://localhost:80/', + ] interval: 30s timeout: 3s retries: 3