21 lines
624 B
YAML
21 lines
624 B
YAML
# Use the frontend source code in upstream/HubFrontend.
|
|
name: drivershub-frontend
|
|
|
|
services:
|
|
frontend:
|
|
build:
|
|
context: .
|
|
args:
|
|
ASSETS_BASE: ${ASSETS_BASE:-}
|
|
VITE_USE_MULTIHUB: ${VITE_USE_MULTIHUB:-false}
|
|
VITE_MULTIHUB_DISCOVERY: ${VITE_MULTIHUB_DISCOVERY:-}
|
|
VITE_CONFIG_URL: ${VITE_CONFIG_URL:?Set VITE_CONFIG_URL in .env}
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${FRONTEND_BIND:-127.0.0.1:18080}:8080"
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:8080/"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 10
|