docker-compose for nginx.
This commit is contained in:
parent
c8bda50de6
commit
39e47699f3
1 changed files with 12 additions and 0 deletions
12
nginx/nginx-server-docker-compose.yaml
Normal file
12
nginx/nginx-server-docker-compose.yaml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue