Update environment variables and Docker Compose configuration for frontend port

This commit is contained in:
evansvl
2026-01-17 19:54:45 +03:00
parent 37c14f969f
commit dd054c6f01
2 changed files with 13 additions and 5 deletions

View File

@@ -20,5 +20,5 @@ VITE_APP_LOGO=V
# ===== RUNTIME VARIABLES ===== # ===== RUNTIME VARIABLES =====
# Port to expose the frontend on host machine # Port to expose the frontend on host machine
# Default: 3000 (http://localhost:3000) # Default: 3020 (http://localhost:3020)
CABINET_PORT=3000 CABINET_PORT=3020

View File

@@ -16,13 +16,21 @@ services:
container_name: cabinet_frontend container_name: cabinet_frontend
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- .env # Загрузить переменные из .env файла - .env # Загрузить переменные из .env файла
ports: ports:
# Маппинг: <хост-порт>:<контейнер-порт> # Маппинг: <хост-порт>:<контейнер-порт>
# Внутри контейнера nginx слушает на порту 80 # Внутри контейнера nginx слушает на порту 80
- "${CABINET_PORT:-3000}:80" - '${CABINET_PORT:-3020}:80'
healthcheck: 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 interval: 30s
timeout: 3s timeout: 3s
retries: 3 retries: 3