title: Docker-compose services build & deployment workflow
body: <p>Recently I started making a REST API.
  My plan was to use React.js, Flask and Postgres all being created with docker-compose during development and then in production use React and Flask services with docker-compose but make the database run on VPS (outside of docker container). I should also add that I am currently doing my migrations via Flask-Migrate module.</p>
  
  <p>I was thinking of a way how to easily deploy the project to a VPS by git and build the docker-compose using git post-receive hook, since I want to have full control of the process, but...</p>
  
  <ol>
  <li>How would I make database migrations this way?</li>
  <li>Is this a good way to build &amp; deploy a project?</li>
  </ol>
  
  <p>Sorry for any inconvenience and feel free to ask me for further info if you can't understand my questions.</p>