# Docker Compose host settings TZ=Asia/Shanghai BIND_ADDRESS=0.0.0.0 APP_PORT=8081 # Remote ZLMediaKit. RTMP is used by the container to publish; HTTP is the fallback for browsers. # Live preview play addresses (flvUrl/hlsUrl) follow the address the browser actually used: the # host of X-Forwarded-Host/Host replaces the host below, while scheme and port stay as configured # here. So one deployment can serve both an intranet IP and an internet IP, e.g. # ZLM_HTTP_BASE_URL=http://192.168.20.210:18891 also returns http://192.168.134.10:18891/live/... # for requests that reach the service through 192.168.134.10. This value is returned only when the # request carries no usable host (internal calls, background threads). ZLM_RTMP_BASE_URL=rtmp://192.168.1.200:1935 ZLM_HTTP_BASE_URL=http://192.168.1.200:18081 # ZLMediaKit HTTP API used by the service to verify that a live stream is really registered. # The API address defaults to ZLM_HTTP_BASE_URL; if the container cannot reach that address, # append -Dhik.playback.hls.api-base-url= to JAVA_TOOL_OPTIONS. # An empty secret makes .../ui/actions/live/start fail fast with ZLM_PUSH_FAILED. ZLM_API_SECRET=change_me # Live preview: how many simultaneous streams one NVR is allowed to serve through this service. # Field measurements show some NVRs only accept 1 remote RTSP stream at a time; set this to the # value measured for the site so that extra windows queue up instead of being refused by the device. HIK_NVR_LIVE_MAX_SESSIONS_PER_NVR=1 # Live preview pulls RTSP directly from each camera (ivs_camera.dev_ip) first and automatically # falls back to the NVR/CVR path when the camera is unreachable or rejects the credentials. # Keep this enabled for sites whose recorder is a CVR (central storage) with a tiny remote # forward quota; set to false to always stream through the NVR. HIK_NVR_LIVE_PREFER_CAMERA_DIRECT=true HIK_NVR_LIVE_CAMERA_RTSP_PORT=554 # Maven mirror used while building the image MAVEN_MIRROR_URL=https://maven.aliyun.com/repository/public # MAVEN_MIRROR_URL=https://repo.maven.apache.org/maven2 # Remote MySQL; no local MySQL or Redis container is started DB_URL=jdbc:mysql://192.168.1.116:4406/inspect_shaoxing_260511?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true DB_USERNAME=root DB_PASSWORD=remote_mysql_change_me # NVR names, IPs, SDK/RTSP/HTTP ports and credentials are maintained in basedata_eqpbook_nvr. # Camera names, ownership and direct IPs are maintained in ivs_camera. # Container memory and native SDK library settings JAVA_TOOL_OPTIONS=-XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0 -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom -Djava.library.path=/app/lib:/app/lib/HCNetSDKCom:/app/lib/linux64