docker-compose for nginx.

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

View file

@ -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