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

@@ -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