Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.76 KB

README.template.md

File metadata and controls

48 lines (31 loc) · 1.76 KB

About

Nginx with s6-overlay.


Features

  • Nginx: %%S6_NGINX_VERSION%%
  • S6 Overlay: %%S6_OVERLAY_VERSION%%
  • Multi-platform image
  • Use official nginx container configurations

Image

Registry Image
Docker Hub docker.io/socheatsok78/nginx-s6:%%S6_NGINX_VERSION%%
GitHub Package Registry ghcr.io/socheatsok78/nginx-s6:%%S6_NGINX_VERSION%%

How to use this image

$ docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d socheatsok78/nginx-s6:%%S6_NGINX_VERSION%%

Alternatively, a simple Dockerfile can be used to generate a new image that includes the necessary content (which is a much cleaner solution than the bind mount above):

FROM socheatsok78/nginx-s6:%%S6_NGINX_VERSION%%
COPY static-html-directory /usr/share/nginx/html

Place this file in the same directory as your directory of content ("static-html-directory"), run docker build -t some-content-nginx ., then start your container:

$ docker run --name some-nginx -d some-content-nginx

Documentations

The usage guide are the same as the official nginx docker image.

For s6-overlay usage guide see: https://github.com/just-containers/s6-overlay/#readme

License

Licensed under the MIT.