← All slides

Intro to Shipping and Running a Service — Slides

50 lessons, 676 slides. Each lesson's text and code as one deck (the slides are in Japanese).

Version 1 (made 2026-11-06)

Payment is handled on Stripe's page. After buying, you can download from this page at any time.

Please log in to use a coupon code. You can also enter a promotion code on the payment page (Stripe).

Samples

Sample slide 1 Sample slide 2 Sample slide 3

What's included

  • slides.pdf — One slide per page. For checking or printing
  • png/ — 1920×1080 images, ready to drop into a video editor
  • index.html — Open in a browser to present. Press P for the presenter view (notes, next slide, elapsed time)

Each lesson has its own folder. The lesson text is kept as is, so what to say appears in the presenter notes.

How you may use them

  • Your own study
  • Classes, lectures and study groups you teach yourself
  • In-house training at your own company or organization
  • On screen in videos you record yourself for those classes or trainings
  • Editing the wording or reordering slides for those uses
  • Handing out the slide files themselves (PDF, PNG, HTML) to learners or anyone else
  • Selling the slides, or edited versions of them, or including them in paid materials
  • Posting them anywhere public (websites, social media, public videos on video sites, etc.)
  • Removing the 4peiron.dev credit and presenting them as your own work

4peiron.dev keeps the copyright. What you buy is the right to use the slides as described above. The same terms are in README.txt inside the ZIP.

Contents

1

サービス公開と運用の全体像と三層構成

14 slides

2

VPS・PaaS・コンテナサービスの比較

13 slides

3

費用の見積もりと月額の目安

12 slides

4

ドメインを取ってサーバーの IP に向ける

14 slides

5

DNS の設定:A・CNAME・MX・TXT

13 slides

6

三層構成を compose で束ねる

12 slides

7

SSH 鍵でログインする

13 slides

8

作業用ユーザーと最小の sudo

13 slides

9

sshd の要塞化

12 slides

10

パスワード認証を止める

12 slides

11

ファイアウォールは既定 deny

13 slides

12

自動セキュリティ更新

12 slides

13

fail2ban で総当たりを遮断する

13 slides

14

要塞化のチェックリスト

13 slides

15

Dockerfile でアプリを固める

15 slides

16

レイヤキャッシュと非 root

13 slides

17

docker compose で app と db を束ねる

16 slides

18

healthcheck で「使える」を判定する

13 slides

19

環境変数と .env に秘密を集める

14 slides

20

.env の落とし穴:パスワード不一致と DEBUG

15 slides

21

永続ボリュームでデータを残す

12 slides

22

秘密情報を安全に生成する

26 slides

23

Caddy を前段に置く

15 slides

24

reverse_proxy の中身を caddy adapt で見る

12 slides

25

TLS 証明書の自動取得

13 slides

26

証明書の自動更新

11 slides

27

静的ファイルは whitenoise で配る

13 slides

28

HTTPS リダイレクトと health の除外

13 slides

29

複数サービスを 1 台に同居させる

12 slides

30

edge と backend でネットワークを分ける

13 slides

31

deploy スクリプトの流れ

13 slides

32

ローカル検査:壊れたコードを転送しない

13 slides

33

初回デプロイ:health 200 まで

13 slides

34

マイグレーションは起動時に当てる

13 slides

35

管理者アカウントをコンテナの中で作る

12 slides

36

SMTP の疎通確認

13 slides

37

rsync の除外で .env を守る

13 slides

38

公開前チェックリスト

13 slides

39

バックアップは pg_dump で取る

12 slides

40

復元:消してから戻して確かめる

13 slides

41

cron で毎日バックアップを取る

12 slides

42

コードのロールバック

11 slides

43

イメージのロールバック

12 slides

44

メンテナンス画面:エッジの Caddy で 503

15 slides

45

ログの見方と症状からの切り分け

25 slides

46

2 回目以降の更新

13 slides

47

CI から push でデプロイする

15 slides

48

費用の抑え方とメモリの上限

13 slides

49

監視の最低限

13 slides

50

総まとめと運用の型

14 slides

The lesson text is on the course page. Slides are sold separately from the membership; members also need to buy them. Refunds follow the Terms of Service.