Skip to content

Instantly share code, notes, and snippets.

@i40sys
Created March 1, 2022 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i40sys/a975b02614c8ee2861ee56929daaa14e to your computer and use it in GitHub Desktop.
Save i40sys/a975b02614c8ee2861ee56929daaa14e to your computer and use it in GitHub Desktop.
version: "3.7"
services:
node-red:
container_name: node-red
image: nodered/node-red:latest
environment:
- TZ=Europe/Madrid
volumes:
- /dev:/host/dev
- /etc/localtime:/etc/localtime:ro
- ./data:/data
- ./known_hosts:/usr/src/node-red/.ssh/known_hosts
network_mode: host
healthcheck:
#test: ["CMD", "curl", "--fail", "http://localhost:1880", "||","exit 1" ]
test: ["CMD-SHELL","node /healthcheck.js"]
interval: 60s
timeout: 3s
retries: 3
start_period: 30s
restart: unless-stopped
privileged: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment