RocketChat / Docker.Official.Image

Docker hub - community managed image
293 stars 218 forks source link

[Docker compose] Docker-compose down very long #131

Open emikolajczak opened 3 years ago

emikolajczak commented 3 years ago

After upgrade from 3.0.12 to 3.6.3 I have noticed that docker-compose down take a long time (about 2-3 min) to stop. In logs I see below entries

docker-compose: Stopping rocket-3000_rocketchat_1 ...
Jan 12 07:27:10 rocket01 dockerd: time="2021-01-12T07:27:10.474186740+01:00" level=info msg="Container 27ef1556bd5159f349be9c012e7263d1e18c1eb28104577d35566cd23cb9700a failed to exit within 10 seconds of signal 15 - using the force"
Jan 12 07:28:09 rocket01 docker-compose: ERROR: for rocket-3000_rocketchat_1  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=70)
Jan 12 07:28:09 rocket01 docker-compose: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
Jan 12 07:28:09 rocket01 docker-compose: If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).
Jan 12 07:28:10 rocket01 systemd: docker-compose@rocket-3000.service: control process exited, code=exited status=1

My docker compose file

rocketchat:
  image: rocketchat/rocket.chat:3.6.3
  environment:
  - PORT=3000
  - MONGO_URL=...
  - MONGO_OPLOG_URL=...
  - ROOT_URL=https://...
  - Accounts_UseDNSDomainCheck=False
  - DISABLE_PRESENCE_MONITOR=true

  - http_proxy=...
  - https_proxy=...

  - INSTANCE_IP= ...
  ports:
  - 3000:3000
  - 9458:9458

  mem_limit: 2000M
  extra_hosts:
...