0

I want to deploy my Laravel project with docker on the server. (locally it works fine) I follow the following steps: 1. docker-compose build app 2. docker-compose up -d 3. docker-compose exec app composer install (throws error)

error: Failed to download psr/log from dist: curl error 60 while downloading https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001: SSL certificate problem: self signed certificate in certificate chain Now trying to download from source

enter image description here

add the following commands:

RUN composer config --global disable-tls true RUN composer config --global secure-http false

generate security certificates disable firewall

New contributor
jorge arellano is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1
  • 1
    GitHub proper should have a correctly signed TLS certificate; if you're seeing a self-signed certificate there, you're probably in an environment where someone is trying to compromise end-to-end TLS security. (Are you in an untrusted environment like a coffee shop? Do you need some sort of proxy?) If you're in an environment so untrusted that end-to-end TLS doesn't work, I definitely would not disable your firewall.
    – David Maze
    Commented 2 days ago

0

Browse other questions tagged or ask your own question.