Created
March 1, 2022 06:03
-
-
Save i40sys/7086acd08206190e5e3a9bc0ebd3c415 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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