Made the data folder an envvar

This commit is contained in:
pablo 2021-11-14 17:26:40 +01:00
parent 39e47699f3
commit e692da6e91

View file

@ -2,9 +2,9 @@ services:
nginx: nginx:
image: nginx image: nginx
volumes: volumes:
- "./_site:/var/www/public" - "${NGINX_DATA_HOME}/site:/var/www/public"
- "./nginx/nginx.conf:/etc/nginx/nginx.conf" - "${NGINX_DATA_HOME}/nginx_stuff/nginx.conf:/etc/nginx/nginx.conf"
- "./nginx/html/404.html:/usr/share/nginx/html/404.html" - "${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 # 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 # Important: ensure that 404.html exist else this will throw an error during build
# - "./web/_site/404.html:/usr/share/nginx/html/404.html" # - "./web/_site/404.html:/usr/share/nginx/html/404.html"