Skip to content

Instantly share code, notes, and snippets.

@i40sys
Created March 1, 2022 05:52
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/05ab756a96466c6b733bfbb6a19f81ca to your computer and use it in GitHub Desktop.
Save i40sys/05ab756a96466c6b733bfbb6a19f81ca 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
network_mode: host
healthcheck:
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