Created
January 30, 2020 19:28
-
-
Save QNimbus/2d57ee637bdebff9c73453982680ff5a to your computer and use it in GitHub Desktop.
Sample docker-compose file for NodeRED on Docker for Windows
This file contains hidden or 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: | |
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