I have a simple python / flask application. It's like on a container
/var/www/app/ appl/ static/ ... app.py wsgi.py
I used nginx to serve static files just before using dockers. Like this:
location /static { alias /var/www/www.domain.com/appl/static; } location / { uwsgi_pass unix:///tmp/uwsgi/www.domain.com.sock; include uwsgi_params; }
But now the static files are inside the container and inaccessible to nginx.
I can imagine two possible solutions:
run nginx inside the container, as before, and let the nginx host interact with the nginx container using a port like 8000
set (host)/var/www/www.domain.com/static to (container)/var/www/static and copy all the static files to run.sh
What does docker prefer?
hbrls source share