From 39e47699f3487ee0e97d1ae8db024b796f56cf03 Mon Sep 17 00:00:00 2001 From: pablo Date: Sun, 14 Nov 2021 17:17:17 +0100 Subject: [PATCH] docker-compose for nginx. --- nginx/nginx-server-docker-compose.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 nginx/nginx-server-docker-compose.yaml 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