fleet/agents/go2/docker-compose.yml

21 lines
773 B
YAML

# sanad_api_go2 — standalone Go2 fleet TELEMETRY agent.
# (The fleet installer deploys via plain `docker build`/`docker run` + systemd;
# this compose file is for manual local use.)
#
# cp .env.example .env # set SERVER_URL + DEVICE_TOKEN + SN + DDS_INTERFACE
# docker compose up -d --build
#
# Reads the Go2's DDS state (rt/lowstate, unitree_go; battery from bms_state) and
# POSTs telemetry every ~2s. network_mode: host is REQUIRED for DDS visibility.
services:
sanad-api-go2:
build:
context: .
dockerfile: Dockerfile
image: "${SANAD_API_GO2_IMAGE:-sanad-api-go2:latest}"
container_name: sanad-api-go2
network_mode: host
restart: unless-stopped
env_file: .env
# command: ["--simulate"] # synthetic state, no robot