21 lines
737 B
YAML
21 lines
737 B
YAML
# sanad_api_g1t — standalone G1 fleet TELEMETRY agent.
|
|
# (The fleet installer deploys via docker build/run + systemd; this compose is
|
|
# for manual local use.)
|
|
#
|
|
# cp .env.example .env # SERVER_URL + DEVICE_TOKEN + SN + DDS_INTERFACE
|
|
# docker compose up -d --build
|
|
#
|
|
# Reads the G1's DDS state (rt/lf/bmsstate + rt/lowstate + rt/lf/odommodestate)
|
|
# and POSTs telemetry every ~2s. network_mode: host is REQUIRED for DDS.
|
|
services:
|
|
sanad-api-g1t:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: "${SANAD_API_G1T_IMAGE:-sanad-api-g1t:latest}"
|
|
container_name: sanad-api-g1t
|
|
network_mode: host
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
# command: ["--simulate"] # synthetic state, no robot
|