title: ERROR: connect ECONNREFUSED 127.0.0.1:5432 on Gitlab CI
body: <p>I am currently working on a project, and i have a big problem about CI with Gitlab. There is two container build with <code>docker-compose</code>, one is an API and the other one is PostgreSQL database.</p>
  <p>Here is my gitlab-ci.yml :</p>
  <pre class="lang-yaml prettyprint-override"><code>image: node:lastest
  
  variables:
    POSTGRES_DB: test
    POSTGRES_USER: user
    POSTGRES_PASSWORD: pass
    POSTGRES_HOST: postgres
    POSTGRES_PORT: 5432
    POSTGRES_HOST_AUTH_METHOD: trust
    NODE_ENV: test
  
  services:
    - postgres:12.2-alpine
  
  
  stages:
     - test
  
  eslint:
    stage: test
    image: node:12.18.2-alpine3.9
    before_script:
      - npm install
    script:
      - npm run linter
    except:
      - develop
  
  audit:
    stage: test
    image: node:12.18.2-alpine3.9
    before_script:
      - npm install
      - npm install -g sequelize-cli
      - npx sequelize-cli db:create
    script:
      - npm test
    allow_failure: false
    except:
      - develop
  </code></pre>
  <p>So, i got this error :</p>
  <pre class="lang-sh prettyprint-override"><code>$ npx sequelize-cli db:create
  Sequelize CLI [Node: 12.18.2, CLI: 6.2.0, ORM: 6.3.5]
  Loaded configuration file &quot;config/database.js&quot;.
  Using environment &quot;development&quot;.
  ERROR: connect ECONNREFUSED 127.0.0.1:5432
  Cleaning up file based variables
  00:01
  ERROR: Job failed: exit code 1
  </code></pre>
  <p>What am I missing?</p>
  <p>Thanks !</p>