title: Airflow how to mount airflow.cfg in docker container
body: <p>I'm running airflow in a docker container and want to mount my <code>airflow.cfg</code> as a volume so I can quickly edit the configuration without rebuilding my image or editing directly in the running container. I'm able to mount my <code>airflow.cfg</code> as a volume and my airflow webserver successfully reads the configuration from it on start up. However, when I edit on the host changes aren't reflected inside the docker container. </p>
  
  <p>The output for <code>findmnt -M airflow.cfg</code> inside the docker container returns:</p>
  
  <pre><code>TARGET                         SOURCE                                                             FSTYPE OPTIONS
  /usr/local/airflow/airflow.cfg /dev/sda1[/host/path/airflow/airflow.cfg~//deleted]  ext4   rw,relatim
  </code></pre>
  
  <p>From that output it seems like <code>airflow.cfg</code> continues to point to the original unedited version of <code>airflow.cfg</code>. Is there any workaround to allow updating the config file from the host machine? </p>
  
  <p>I'm using the LocalExecutor compose file from the <a href="https://github.com/puckel/docker-airflow" rel="noreferrer">puckel github repo</a> as a base. I modify it to mount <code>airflow.cfg</code> in the compose file instead of copying it in the Dockerfile. </p>