title: How to auto deploy Docker Image on own server with GitLab?
body: <p>I am trying to Google it for few hours, but can't find it.
  I have Java/Spring application (+MySQL if it matters) and I am looking to create CI for that.</p>
  
  <p><strong>I know what to do and how:</strong></p>
  
  <ol>
  <li>I know that I have to move my Git repo to Gitlab.</li>
  <li>Push to repo will trigger CI script.</li>
  <li>Gitlab will build my docker image into Gitlab Docker Registry.</li>
  </ol>
  
  <p><strong>Question is:</strong></p>
  
  <p>What do I have to do to force docker compose on my VPS to pull the new image from Gitlab and restart the server? 
  I know (correct me if I am wrong) that on my VPS I should run <code>docker-compose pull &amp;&amp; docker-compose up</code> inside my app folder, but I have literally no idea how to make it automatically with Gitlab?</p>