Made the data folder an envvar
This commit is contained in:
parent
39e47699f3
commit
e692da6e91
1 changed files with 3 additions and 3 deletions
|
|
@ -2,9 +2,9 @@ services:
|
|||
nginx:
|
||||
image: nginx
|
||||
volumes:
|
||||
- "./_site:/var/www/public"
|
||||
- "./nginx/nginx.conf:/etc/nginx/nginx.conf"
|
||||
- "./nginx/html/404.html:/usr/share/nginx/html/404.html"
|
||||
- "${NGINX_DATA_HOME}/site:/var/www/public"
|
||||
- "${NGINX_DATA_HOME}/nginx_stuff/nginx.conf:/etc/nginx/nginx.conf"
|
||||
- "${NGINX_DATA_HOME}/nginx_stuff/404.html:/usr/share/nginx/html/404.html"
|
||||
# to use jekyll's 404 page, uncomment the line below and disable the line above
|
||||
# Important: ensure that 404.html exist else this will throw an error during build
|
||||
# - "./web/_site/404.html:/usr/share/nginx/html/404.html"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue