version: "3.7"

services:
  app_proxy:
    environment:
      APP_HOST: node-red-standalone_web_1
      APP_PORT: 1881
      # Used to allow (HTTP In) flows to be publicly exposed
      PROXY_AUTH_WHITELIST: "/public/*"
  
  web:
    image: nodered/node-red:3.0.2-18@sha256:e401cd81a43bca7db51fe8dac2c9cfc9b4ffb922ba424241280f7392e13b06a0
    restart: on-failure
    stop_grace_period: 1m
    volumes:
      - ${APP_DATA_DIR}/data:/data
    environment:
      PORT: 1881