Travis-CI Why I get error after success build in Docker?

I have docker-compose with Python back-end and JavaScript front-end.

In travis-ci I run it and everything is okay. It compiles successfully.
But it is server, so nothing are stopped. But I get:

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
The build has been terminated

As a result, build is failed. How can I fix it?

enter image description here

My .travis.yml:

sudo: required

services:
  - docker

env:
  DOCKER_COMPOSE_VERSION: 1.29.0

before_install:
  - sudo rm /usr/local/bin/docker-compose
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin

before_script:
  - cd docker
  - docker-compose -p web up --build


after_script:
  - docker-compose down

Source: Docker Questions

LEAVE A COMMENT