pipeline:
  deploy-production:
    image: docker/compose
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    commands:
      - docker-compose -p otm up -d --force-recreate --build
    when:
      event: push
      branch: [master]