containers: - name: node-red {% if 'custom_image' in node_red_instances[node_red_instance] %} image: "nodered/node-red/{{ node_red_instance }}:{{ node_red_instances[node_red_instance].version }}-debian" {% else %} image: "nodered/node-red:{{ node_red_instances[node_red_instance].version }}-debian" {% endif %} volumeMounts: - name: tls mountPath: /tls readOnly: true - name: data mountPath: /data ports: - containerPort: 1880 hostPort: {{ node_red_instances[node_red_instance].port }} {% if node_red_instances[node_red_instance].publish.zone.publisher == inventory_hostname %} hostIP: "127.0.0.1" {% endif %} volumes: - name: tls hostPath: path: "{{ node_red_instance_basepath }}/tls" type: Directory - name: data hostPath: path: "{{ node_red_instance_basepath }}/data" type: Directory