Minggu, 12 Juni 2022

DOCKERCOMPOSE-up error dc

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 driver
Creating 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
48

You need your COMPOSE_HTTP_TIMEOUT at your docker instance level (docker-compose up) and not inside your docker image. So the solution is to create a .env file and put this inside:

#.env
COMPOSE_HTTP_TIMEOUT=200

Tidak ada komentar:

Posting Komentar