29 lines
949 B
YAML
29 lines
949 B
YAML
services:
|
|
platform-agent:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: platform-agent:latest
|
|
container_name: platform-agent
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
privileged: true
|
|
environment:
|
|
HOST: 0.0.0.0
|
|
PORT: 3100
|
|
AGENT_CONFIG: /app/agent.config.json
|
|
WORKSPACE_ROOT: /workspace
|
|
ROS_BRIDGE_URL: ${ROS_BRIDGE_URL:-http://127.0.0.1:8765}
|
|
ROS_DOMAIN_ID: ${ROS_DOMAIN_ID:-0}
|
|
ROBOT_STACK: ${ROBOT_STACK:-autoware}
|
|
CAMERA_ENABLED: ${CAMERA_ENABLED:-false}
|
|
CAMERA_SIGNALING_URL: ${CAMERA_SIGNALING_URL:-ws://127.0.0.1:3000}
|
|
CAMERA_ROOM_ID: ${CAMERA_ROOM_ID:-jetson-1}
|
|
CAMERA_VIDEO_DEVICE: ${CAMERA_VIDEO_DEVICE:-/dev/video0}
|
|
volumes:
|
|
- ${PLATFORM_WORKSPACE_ROOT:-/home/ubuntu/.caches}:/workspace:rw
|
|
- /dev:/dev
|
|
- /tmp:/tmp
|
|
devices:
|
|
- ${CAMERA_VIDEO_DEVICE:-/dev/video0}:${CAMERA_VIDEO_DEVICE:-/dev/video0}
|