Skip to content

Instantly share code, notes, and snippets.

@i40sys
Created March 1, 2022 06:03
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/7086acd08206190e5e3a9bc0ebd3c415 to your computer and use it in GitHub Desktop.
Save i40sys/7086acd08206190e5e3a9bc0ebd3c415 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
networks:
- i40sys
networks:
i40sys:
external:
name: i40sys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment