我的停靠-撰写文件如下:
version: '3'
services:
database:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: qwerty
POSTGRES_USER: qwerty
backend:
depends_on:
- database
build:
#Dockerfile used here will use python image,build the django pro
我使用Django 1.10 + uWsgi + nginx。在Prod模式下,静态文件不显示,这是我的nginx错误日志告诉我的:
404 ... static/CACHE/js/e3a6fa7588d1.js" failed (2: No such file or directory),
文件夹static/CACHE仍然是空的(所以404是合理的),但是为什么呢?我已经将权限设置为775 for static/CACHE。
nginx conf:
# /etc/nginx/sites/available/mysite_nginx.conf
# the upstream com