Skip to content

Instantly share code, notes, and snippets.

@QNimbus
Created January 30, 2020 19:28
Show Gist options
  • Save QNimbus/2d57ee637bdebff9c73453982680ff5a to your computer and use it in GitHub Desktop.
Save QNimbus/2d57ee637bdebff9c73453982680ff5a to your computer and use it in GitHub Desktop.
Sample docker-compose file for NodeRED on Docker for Windows
version: '3.7'
services:
nodered:
container_name: nodered
image: nodered/node-red
healthcheck:
test: curl -f --connect-timeout 2 http://localhost:1880 || exit 1
interval: 30s
timeout: 4s
retries: 3
start_period: 5s
ports:
- 1880:1880
environment:
- TZ=Europe/Amsterdam
logging:
driver: 'json-file'
options:
max-size: '100k'
max-file: '2'
volumes:
- type: bind
source: /d/Dev/Docker/nodered
target: /data
read_only: false
labels:
- 'dummy.label'
restart: on-failure
stop_grace_period: 10s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment