Last active
May 20, 2018 19:56
-
-
Save DazWilkin/e510bf5b8bd23a96e2fc616f42f02408 to your computer and use it in GitHub Desktop.
Running Node-RED on Google Cloud Platform under Docker
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
#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