mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
Update environment variables and Docker Compose configuration for frontend port
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user