Skip to content

Instantly share code, notes, and snippets.

@i40sys
Created October 27, 2022 05:18
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/a90adcb8fd9220596eda122e5f43ca4f to your computer and use it in GitHub Desktop.
Save i40sys/a90adcb8fd9220596eda122e5f43ca4f to your computer and use it in GitHub Desktop.
version: "3.8"
services:
node-red:
container_name: node-red
image: node-red
environment:
- TZ=Europe/Madrid
build:
context: .
dockerfile: Dockerfile
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:1880/", "||","exit 1" ]
interval: 60s
timeout: 3s
retries: 3
start_period: 30s
restart: unless-stopped
network_mode: host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment