Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Dockerで動かすNode-RED
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
KMiura
November 27, 2020
Technology
410
0
Share
Dockerで動かすNode-RED
2020.11.27 Node-RED UG勉強会 2020 年末オンラインLTパーティ
KMiura
November 27, 2020
More Decks by KMiura
See All by KMiura
運用しているアプリケーションのDBのリプレイスをやってみた
miura55
1
1.2k
Amazon Rekognitionを使ったインターホンハック
miura55
0
120
Pythonでルンバをハックしてみた
miura55
0
240
あなたの知らないクラフトビールの世界
miura55
0
430
Storage Browser for Amazon S3を触ってみた + α
miura55
0
280
Cloudflare R2をトリガーにCloudflare Workersを動かしてみた
miura55
0
300
あのボタンでつながるSORACOM
miura55
0
170
Postman Flowsで作るAPI連携LINE Bot
miura55
0
440
Lambdaと共に歩んだAWS
miura55
3
1k
Other Decks in Technology
See All in Technology
オンコールの負荷軽減のためのBits Assistant 活用方法 / How to Use Bits Assistant to Reduce the Workload on On-Call Staff
sms_tech
1
330
Sony_KMP_Journey_KotlinConf2026
sony
0
170
Amazon CloudFrontにおけるAIボットアクセス制御のポイント
kizawa2020
5
300
Claude code Orchestra
ozakiomumkj
2
320
AI Adaptable なテストを整える工夫 / Ways to Make Your Tests AI-Adaptable
bitkey
PRO
2
150
さきさん文庫の書籍ができるまで
sakiengineer
0
300
ポスター発表&デモと総括 / Poster Presentations & Demonstrations and Summary
ks91
PRO
0
160
自称宇宙最速で不合格となったAIP-C01にリベンジを果たすべくAIで問題集アプリを作ってみた。
yama3133
0
240
責任あるソフトウェアエンジニアリングの紹介4章・5章 / RSE_Ch4-5
ido_kara_deru
0
370
美味しいスイスチーズを作ろう🧀🐭
taigamikami
1
150
A Harness for Behaviour: how to get AI to generate code that does what we intend, or "TDD in the age of AI"
xpmatteo
0
510
Platform engineering for developers, architects & the rest of us (AI agents)
danielbryantuk
0
130
Featured
See All Featured
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
190
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Chasing Engaging Ingredients in Design
codingconduct
0
200
Darren the Foodie - Storyboard
khoart
PRO
3
3.4k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Rails Girls Zürich Keynote
gr2m
96
14k
ラッコキーワード サービス紹介資料
rakko
1
3.4M
Technical Leadership for Architectural Decision Making
baasie
3
380
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
Transcript
Dockerで動かすNode-RED Koki Miura(@k_miura_io)
自己紹介 • 三浦 耕生(こうき) • 名古屋のゲーム会社 のサーバーエンジニア @k_miura_io koki.miura05
自己紹介 • 三浦 耕生(こうき) • 名古屋のゲーム会社 のサーバーエンジニア @k_miura_io koki.miura05
Dockerとは? • Docker社が提供しているコンテナ型の仮想 環境を作成、配布、実行するためのシステム • ホストマシン(開発に使っているPC)上で動 かしているDockerエンジン上でゲストOSと アプリが動く • VMよりメモリーを食わないので動作が軽い
• そしてタダ!! Dockerエンジン コンテナ(実行環境) 現代のWeb開発には切っても 切り離せない存在
Node-REDも動かせる • パソコンにdockerインストールしていればコマンド一つで環境構築 • 公式でイメージが配布されている https://nodered.jp/docs/getting-started/docker
最低限動かすコマンド(公式Docより) docker run -it -p 1880:1880 --name mynodered nodered/node-red
これはちょっと… • ストレージを圧迫(仮想環境を動かすからそこそこある) • 毎回あのコマンドを実行するのはつらい(メモ書きをコピーするのはダ サい) • どうせ動かすならちゃんとコマンドの意味を理解したい
そこで
Docker Composeとは? • dockerイメージのビルドや各コンテナの起動・停止までをコマンド一 発で行える • Dockerコマンドでやってた設定をYAMLにまとめられる • Node-REDとDBやnginxのコンテナを連携するときに使うと◎
docker run -it -p 1880:1880 --name mynodered nodered/node-red services: mynodered:
image: nodered/node-red ports: - "1880:1880"
services: mynodered: image: nodered/node-red ports: - "1880:1880" $docker-compose up
• 設定ファイルがコンテナ内にある • コンテナを破棄すると中にあるデータが消える • コンテナの外部とデータボリュームを共有すると設定ファイルが手元で 見れるようになる →自作ノードを開発する環境もできる 設定を残しておきたい
つづきは12/20のアドベントカレンダーで https://qiita.com/advent-calendar/2020/node-red
まとめ • Dockerを使えばNode-REDの環境構築が簡単に • Docker Composeを使えばさらに簡単に • Dockerは怖くない
END