diff --git a/nginx/nginx-server-docker-compose.yaml b/nginx/nginx-server-docker-compose.yaml new file mode 100644 index 0000000..ce4c91a --- /dev/null +++ b/nginx/nginx-server-docker-compose.yaml @@ -0,0 +1,12 @@ +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" + # 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" + ports: + - 42072:80