Nginx + PHP on docker serving static files
one text
Solution:
As @slauth mentioned, there is no way to access files to another container.
I decided to serve static images using PHP. Here is a good tutorial: https://grahamlikesto.codes/slim-php-how-to-serve-static-files-with-slim-php/
This is not the best solution. My app is a small app with little traffic, and serving assets is not a big deal, but you should change your architecture if you run this issue.
Source