Skip to content

Instantly share code, notes, and snippets.

@DazWilkin
Last active May 20, 2018 19:56
Show Gist options
  • Save DazWilkin/e510bf5b8bd23a96e2fc616f42f02408 to your computer and use it in GitHub Desktop.
Save DazWilkin/e510bf5b8bd23a96e2fc616f42f02408 to your computer and use it in GitHub Desktop.
Running Node-RED on Google Cloud Platform under Docker
#cloud-config
write_files:
- path: /etc/systemd/system/node-red.service
permissions: 0644
owner: root
content: |
[Unit]
Description=Start Node-RED
[Service]
ExecStart=/usr/bin/docker run --rm --name=node-red --publish=1880:1880 nodered/node-red-docker:latest
ExecStop=/usr/bin/docker stop node-red
ExecStopPost=/usr/bin/docker rm node-red
runcmd:
- systemctl daemon-reload
- systemctl start node-red.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment