36 lines
938 B
YAML
36 lines
938 B
YAML
|
|
# ============================================
|
||
|
|
# AIoT IoT UI - 部署 Compose
|
||
|
|
# 由 Jenkins 在部署阶段同步到 ${DEPLOY_PATH}
|
||
|
|
# 通过环境变量注入:
|
||
|
|
# IMAGE_TAG 镜像版本号
|
||
|
|
# REGISTRY_HOST 镜像仓库地址(含端口)
|
||
|
|
# HOST_PORT 宿主机暴露端口
|
||
|
|
# ============================================
|
||
|
|
version: '3.8'
|
||
|
|
|
||
|
|
networks:
|
||
|
|
default:
|
||
|
|
name: 1panel-network
|
||
|
|
external: true
|
||
|
|
|
||
|
|
services:
|
||
|
|
aiot-iot-ui:
|
||
|
|
image: ${REGISTRY_HOST:-172.17.16.7:5000}/aiot-iot-ui:${IMAGE_TAG:-latest}
|
||
|
|
container_name: aiot-iot-ui
|
||
|
|
restart: on-failure:5
|
||
|
|
ports:
|
||
|
|
- "${HOST_PORT:-90}:80"
|
||
|
|
environment:
|
||
|
|
TZ: Asia/Shanghai
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD-SHELL", "wget -q -O- http://localhost/ >/dev/null 2>&1 || exit 1"]
|
||
|
|
interval: 10s
|
||
|
|
timeout: 5s
|
||
|
|
retries: 6
|
||
|
|
start_period: 15s
|
||
|
|
deploy:
|
||
|
|
resources:
|
||
|
|
limits:
|
||
|
|
memory: 256m
|
||
|
|
cpus: '0.5'
|