<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>quoll00</author_name>
  <author_url>https://blog.hatena.ne.jp/quoll00/</author_url>
  <blog_title>Carpe Diem</blog_title>
  <blog_url>https://christina04.hatenablog.com/</blog_url>
  <categories>
    <anon>Docker</anon>
  </categories>
  <description>概要 dockerを扱う上で、dev, stg, prdの環境で動かす際の分け方について考えてみました。 環境 docker 1.13.1 docker-compose 1.11.1 主な分け方 思いつくのは以下の５つです。 imageを分ける 全環境のconfigファイルをimageに保持させ、RUN時に指定 templateを埋め込んでおいて、envsubstで環境変数使って書き換える data volumeでconfigをマウントして使用する 環境変数で設定できるように実装し、envを指定する</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchristina04.hatenablog.com%2Fentry%2F2017%2F03%2F03%2F230711&quot; title=&quot;Dockerでのdev, stg, prd環境分け - Carpe Diem&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-03-03 23:07:11</published>
  <title>Dockerでのdev, stg, prd環境分け</title>
  <type>rich</type>
  <url>https://christina04.hatenablog.com/entry/2017/03/03/230711</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
