https://stackoverflow.com/questions/36488209/how-to-override-the-default-value-of-compose-http-timeout-with-docker-compose-co
root@ubuntu:/ssServer# docker-compose up -d
Creating network "ssserver_default" with the default driverCreating ssserver_certbot_1 ...
Creating ssserver_cronicle_1 ...
Creating ssserver_influxdb_1 ...
Creating ssserver_influxdb_1
Creating ssserver_nginx_1 ...
Creating ssserver_cronicle_1
Creating ssserver_nginx_1
Creating ssserver_cronicle_1 ... done
ERROR: for ssserver_influxdb_1 UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for ssserver_certbot_1 UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for certbot UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for influxdb UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).
root@ubuntu:/ssServer#
=================================================================================
COMPOSE_HTTP_TIMEOUT=200 docker-compose up
- 1This didn't work for me. The only thing that seems to work is putting this in the .env for the directory. This is something that I am reluctant to do as a lot of other applications use the .env file by default. E.g craft cms. And I don't want docker-compose setting mixing with these application settings– kingJan 22, 2020 at 11:55
- We here have more configurable answer in stackoverflow.com/a/38631255/7152658– zhongjiajieMar 1, 2020 at 9:34
- 1Worked great for me since I didn't need a permanent change, I was just getting stuck one time.– NoumenonApr 29, 2021 at 18:13
Add a comment