small_server_thingies/nginx/nginx-server-docker-compose.yaml

12 lines
526 B
YAML

services:
nginx:
image: nginx
volumes:
- "${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"
ports:
- ${HOST_PORT}:80