I builded : Apache, Php7.3, and Postgresql images with ‘docker-compose.yml’.
Everything works good, but when I make a call of a local photo, I get a warning message and the photo doesn’t appear.
This is the error message :
Warning: getimagesize(https://localhost:80/tofs.domain.com/photo.php?id=1): failed to open stream: Cannot assign requested address.
I get the same message when I use ‘file_get_contents’ function with ‘localhost’.
Note : calling an external ressource works for theses functions.
So, what must I do to resolve this problem ?