name: robot-market-mqtt5-test x-local-runtime: &local-runtime image: robot-market-mqtt5:local build: context: . dockerfile: Dockerfile network_mode: host user: "${LOCAL_UID:-1000}:${LOCAL_GID:-1000}" init: true read_only: true tmpfs: - /tmp:rw,noexec,nosuid,size=16m cap_drop: - ALL security_opt: - no-new-privileges:true stop_grace_period: 10s logging: driver: local options: max-size: 10m max-file: "3" services: observer: <<: *local-runtime environment: TEST_MQTT5_WEB__ENABLED: "true" TEST_MQTT5_TOPICS__OBSERVE_ALL: "true" TEST_MQTT5_LOGGING__RAW_PAYLOADS: "true" TEST_MQTT5_RECEIPTS__ENABLED: "true" command: - --broker - ${MQTT_BROKER_URL:-tls://109.122.252.129:8884} - --ca - /run/test-mqtt/ca.crt - --credentials - /run/test-mqtt/backend.json - --client-id - rm5-docker-observer - observe volumes: - type: bind source: ${MQTT_CA_FILE:?Set MQTT_CA_FILE in .env} target: /run/test-mqtt/ca.crt read_only: true - type: bind source: ${MQTT_BACKEND_CREDENTIALS_FILE:?Set MQTT_BACKEND_CREDENTIALS_FILE in .env} target: /run/test-mqtt/backend.json read_only: true restart: unless-stopped simulator: <<: *local-runtime profiles: [simulator] entrypoint: ["/device-sim"] command: - --broker - ${MQTT_BROKER_URL:-tls://109.122.252.129:8884} - --ca - /run/test-mqtt/ca.crt - --credentials - /run/test-mqtt/simulator.json - --client-id - rm5-docker-simulator volumes: - type: bind source: ${MQTT_CA_FILE:?Set MQTT_CA_FILE in .env} target: /run/test-mqtt/ca.crt read_only: true - type: bind source: ${MQTT_SIM_CREDENTIALS_FILE:?Set MQTT_SIM_CREDENTIALS_FILE in .env} target: /run/test-mqtt/simulator.json read_only: true restart: unless-stopped