Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ゆうきゃんどっかー のススメ In #TechCafe
Search
ゆうきゃん
December 09, 2020
Programming
290
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ゆうきゃんどっかー のススメ In #TechCafe
ゆうきゃん
December 09, 2020
More Decks by ゆうきゃん
See All by ゆうきゃん
Svelte Todo アプリハンズオン資料
ucan_lab
0
110
開発体験を爆上げするLaravel Dacapo マイグレーションサポートツールのススメ
ucan_lab
0
1.7k
モテるコードの書き方
ucan_lab
0
280
momochanにも分かるPSR講座
ucan_lab
0
65
ターミナルtips
ucan_lab
0
110
Laravel Dacapo 2019-09-06 YYPHP 99
ucan_lab
0
320
Laravel + Docker 環境構築ハンズオン
ucan_lab
2
520
Laravel+GraphQL 良かったこと 困ったこと 悲しかったこと
ucan_lab
2
840
バージョン管理ツールについて振り返り
ucan_lab
0
110
Other Decks in Programming
See All in Programming
Seven New Principles of Software Engineering
yegor256
0
430
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
250
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
140
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
4
1.8k
Kotlinの15年とServer-Side Kotlin
n_takehata
1
190
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
280
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
150
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
1.5k
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
350
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
500
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
400
ActionController meets Protocol Buffers
sorah
1
770
Featured
See All Featured
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
650
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
340
Marketing to machines
jonoalderson
1
6k
Speed Design
sergeychernyshev
33
2.2k
Chasing Engaging Ingredients in Design
codingconduct
0
380
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
350
The Cult of Friendly URLs
andyhume
79
7.1k
Believing is Seeing
oripsolob
1
260
Transcript
Ώ͏͖ΌΜͲ͔ͬʔ ͷεεϝ In #PHPTechCafe 2020/12/09 ucan_lab@rolo
࣍ 1. ࣗݾհ 2. Ώ͏͖ΌΜͲ͔ͬʔͱ 3. LaravelͷϩʔΧϧ։ൃڥબࢶଟ͗͢ 4. ࡞Ζ͏ͱ͖͔͚ͨͬ͠ 5.
ಛ 6. ͍ํ 7. ͩ͜ΘͬͨϙΠϯτ 8. એ 9. ษڧձͰฉ͖͍ͨ͜ͱ
ࣗݾհ • ucan_lab (Ώ͏͖ΌΜ) • ʑ্ݪʹ͋ΔגࣜձࣾROLOʹॴଐ • C, Java, C++,
Swift, Rails, Symfony, Laravel(ࠓίί) • ΈࠐΈΤϯδχΞ͔ΒΣϒΤϯδχΞ • ࠲ӈͷʮదࡐదॴʯ
Ώ͏͖ΌΜͲ͔ͬʔͱʁ • https://github.com/ucan-lab/docker-laravel • Docker ComposeΛͬͨ࠷খߏͷLaravel ։ൃڥߏஙςϯϓϨʔτͰ͢ɻ
LaravelͷϩʔΧϧ։ൃڥ બࢶଟ͗͢ • Laradock (10.2k) • Homestead (3,596) • Valet
(1,847) • Vessel (951) • Laravel Sail (44) • Docker Compose • Vagrant + VirtualBox • XAMPP/MAMP • Local PHP ※ () ݱࡏͷStarͰ͢
࡞Ζ͏ͱ͖͔͚ͨͬ͠
2લͷࢲɺDockerʹग़ձ͏
Laradock͕ਓؾΒ͍͠
ίʔυΛݟͯΈΔ
ίʔυΛݟͯΈΔ • docker-compose.yml: 1,819ߦ • php-fpm/Dockerfile: 1,005ߦ
ͳΜΘ͔ΒΜ
2લʹLaradockʹ৮Εͨࢲ • Θͳ͍ίϯςφઃఆ͕ଟ͗͢Δ... • DBΛͦΜͳԿछྨΘͳ͍... • ίϛϡχςΟ׆ൃ͗ͯ͢ߏ͕සൟʹมΘΔ... • Ϗϧυʹ30͔͔Δ͔Β؆୯ʹڥΛյͤͳ͍...
ࣗͰ࡞Δ͔
ʮDocker LaravelʯͰάάΔ
͔͠͠ɺ·ͨΈ͕...
͍͔ͭ͘هࣄΛࢼͯ͠Έͨ݁Ռ • هࣄͷ௨ΓਐΊͯಈ͔ͳ͍ • ͳͥͦͷߦΛՃͨ͠ཧ༝આ໌͕ͳ͍ • ϛυϧΣΞͷόʔδϣϯ͕มΘͬͯಈ͔ͳ͍ • ͙͢ʹࢼͤΔڥ͕ཉ͍͠ •
طଘͷLaravelͷڥʹಋೖ͍ͨ͠
ࣗͰ࡞Δ͔
docker-laravelͷհ
ಛ • Ϗϧυखॱͷ͞ • Ϗϧυͷ͞ • ࠷খݶͷߏ • PHP7.4/Composer2/nginx1.18/ Node14.2/MySQL8.0
͍ํ
͍ํ
͍ํ
͍ํ: ิ
͍ํ: ิ
ͩ͜ΘͬͨϙΠϯτ • 1ߦ1ߦɺ1ۭനɺ1վߦ·ͰΛஸೡʹॻ͘ • ϕʔεΠϝʔδalpineͰͳ͘debian • αʔϏε໊Λ web, app, db
ʹ͍ͯ͠Δ • Α͘͏ίϚϯυΛMakefileʹ·ͱΊ͍ͯΔ • ϙʔτ൪߸DBଓઃఆ .env ͰมߋՄೳ • GitHub Actions ͰຖCIϏϧυνΣοΫ • ςϯϓϨʔτϦϙδτϦʔԽ͍ͯ͘͢͠ • Windowsαϙʔτ • QiitaͷίϝϯτཝͰखް͍αϙʔτ • teratailͷࣗͷهࣄʹରͯ͠ͷ࣭ʹࣗͰճ • Starཉ͠͞ʹTwitterͰڭ&վफ׆ಈ
Qiitaهࣄ • ࠷ڧͷLaravel։ൃڥΛ DockerΛͬͯߏங͢Δʲ৽ฤू൛ʳ https://qiita.com/ucan-lab/items/5fc1281cd8076c8ac9f4 • ʲೖʳ20ͰLaravel։ൃڥΛ രߏங͢ΔDockerϋϯζΦϯ https://qiita.com/ucan-lab/items/56c9dc3cf2e6762672f4
એ1 • Laravel Dacapo v4.0 Ӷҙ։ൃத https://github.com/ucan-lab/laravel-dacapo • ςʔϒϧఆٛΛYAMLͰఆٛ͠ɺϚΠάϨʔγϣϯ ϑΝΠϧΛੜ͢Δπʔϧ
• Laravel8ͷϚΠάϨʔγϣϯεΧογϯάͳͷ • طଘͷςʔϒϧ͔ΒYAMLఆٛΛٯੜ͢Δػೳ • طଘͷςʔϒϧͱͷࠩͷఆٛΛੜ͢Δػೳ
એ2 • Laravel Advent Calendar 2020 ࢀՃͯ͠·͢ʂ https://qiita.com/advent-calendar/2020/laravel • 1,
8, 15, 22, 24 ͕୲Ͱ͢ɻ • 15Docker Laravel Apache൛ͷهࣄͰ͢ɻ • ࠷ॳɺ͕ຒ·Βͳͯ͘ຒΊͳ͖Ό(໋ײ) ͰຒΊͨ݁Ռɺهࣄॻ͘ͷ͕େมͰ͢ɻɻ • ཧߘͯ͘͠ΕΔํ͍·ͨ͠Β ͝࿈བྷ͍ͩ͘͞
ษڧձͰฉ͖͍ͨ͜ͱ • phpͱcomposerͷίϯςφ͚ͯΔʁ • ϩʔΧϧڥSSLରԠͯ͠Δʁ • ίϯςφҰൠϢʔβʔͰ࣮ߦͯ͠Δʁ
͓ΘΓ