on-internet
← Community

Docker Compose NGINX Proxy and Static Files

Stack Overflow ·

For some reason, my docker-compose/node/nginx stack is having trouble serving static files. The reverse proxy side works but serving my css and javascript fails. For every static file requested, I get an error like this: customnginx_1 | 2016/03/29 22:42:13 [error] 6#6: *1 open() "/var/www/static/styles/normalize.css" failed (2: No such file or directory), client: 192.168.99.1, server: , request: "GET /styles/normalize.css HTTP/1.1", host: "192.168.99.100", referrer: "http://192.168.99.100/" How do I properly link my "static" directory to my nginx container so these files are served correctly?

Comments

Sign in or sign up to comment and upvote.

No comments yet.