diff --git a/nginx/nginx-server-docker-compose.yaml b/nginx/nginx-server-docker-compose.yaml index ce4c91a..f7d8c13 100644 --- a/nginx/nginx-server-docker-compose.yaml +++ b/nginx/nginx-server-docker-compose.yaml @@ -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"