何が起きたのか 僕の体験です。 ある日のこと 彡(゚)(゚)「自作アプリのコンテナ立てるやで」 彡(-)(-)「自作アプリの設定ファイルがあるんだけど運用中にちょくちょく変更が必要そうだし、その度にコンテナを再起動するのは面倒やな。せっかくアプリには設定ファイルを勝手にリロードする機能があるんだし…」 彡(゚)(゚)「せや!」 version: '3.9' services: app: image: my-app volumes: - type: bind source: ./my-config/config.yaml target: /etc/my-config/config.yaml
![Dockerでファイルをbind mountしたら同期されなかった話](https://cdn-ak-scissors.b.st-hatena.com/image/square/da0ef7444a9aa9917be6dcb611dc2a5534f0a8f8/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--K8LyGAty--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3ADocker%2525E3%252581%2525A7%2525E3%252583%252595%2525E3%252582%2525A1%2525E3%252582%2525A4%2525E3%252583%2525AB%2525E3%252582%252592bind%252520mount%2525E3%252581%252597%2525E3%252581%25259F%2525E3%252582%252589%2525E5%252590%25258C%2525E6%25259C%25259F%2525E3%252581%252595%2525E3%252582%25258C%2525E3%252581%2525AA%2525E3%252581%25258B%2525E3%252581%2525A3%2525E3%252581%25259F%2525E8%2525A9%2525B1%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3Atechno-tanoC%252Cx_203%252Cy_121%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyL2ZlZTdjM2ZlYzUuanBlZw%3D%3D%252Cr_max%252Cw_90%252Cx_87%252Cy_95%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)