# SPDX-License-Identifier: MIT
# Node-RED on the measured requirements bench: the Docker Compose example of the official
# documentation (https://nodered.org/docs/getting-started/docker), with four changes, all
# outside the application:
#   - the image is pinned by tag AND digest;
#   - TZ is UTC;
#   - /data is a folder next to this file (the documentation's bind mount form, owned by the
#     container's user 1000), so that the bench can measure its size;
#   - the port is published on the bench's private address, where the load generator stands.
services:
  node-red:
    image: nodered/node-red:5.0.10@sha256:3622786c15b6f57f61bf1d0ece59d06a18b742c5c8955f588d189b6bee8dc97d
    container_name: node-red
    environment:
      - TZ=UTC
    ports:
      - "10.30.0.207:1880:1880"
    volumes:
      - ./data:/data
    restart: unless-stopped
