File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
DEBUG = 'False' # True for development
2
2
NGINX_IMAGE = 'lscr.io/linuxserver/swag' # leave unset for development
3
3
NGINX_CONF = './nginx.prod.conf' # leave unset for development
4
+ NGINX_CONF_LOCATION = '/config/nginx/site-confs/default.conf' # leave unset for development
4
5
SECRET_KEY = ' secret'
5
6
DATABASE_PASSWORD = ' secret'
6
7
DATABASE_ROOT_PASSWORD = " secret"
Original file line number Diff line number Diff line change 1
1
services :
2
2
web :
3
3
build : .
4
+ container_name : django
4
5
volumes :
5
6
- .:/home/app/web
6
7
- static_volume:/home/app/web/staticfiles
7
8
- media_volume:/home/app/web/mediafiles
9
+ - /etc/localtime:/etc/localtime:ro
8
10
expose :
9
11
- 8000
10
12
env_file : .env
@@ -39,7 +41,10 @@ services:
39
41
nginx :
40
42
image : ${NGINX_IMAGE-nginx}:latest # default setting is for development, use lscr.io/linuxserver/swag for production
41
43
volumes :
42
- - ${NGINX_CONF-./nginx.dev.conf}:/etc/nginx/nginx.conf:ro
44
+ # the root conf file is set for dev, but for production use:
45
+ # NGINX_CONF='./nginx.prod.conf'
46
+ # NGINX_CONF_LOCATION='/config/nginx/site-confs/default.conf'
47
+ - ${NGINX_CONF-./nginx.dev.conf}:${NGINX_CONF_LOCATION-/etc/nginx/nginx.conf}
43
48
- ./swag:/config
44
49
- ./nginx_fishauctions.conf:/etc/nginx/nginx_fishauctions.conf:ro
45
50
- static_volume:/home/app/web/staticfiles:ro
Original file line number Diff line number Diff line change @@ -17,5 +17,5 @@ server {
17
17
18
18
include /config/nginx/ssl.conf;
19
19
20
- include ./nginx_fishauctions.conf
20
+ include ./nginx_fishauctions.conf;
21
21
}
You can’t perform that action at this time.
0 commit comments