Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
/ nginx Public archive

Small, powerful, scalable web/proxy server

License

Notifications You must be signed in to change notification settings

timonier/nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

Small, powerful, scalable web/proxy server

If you like / use this project, please let me known by adding a ★ on the GitHub repository.

Usage

docker run --interactive --publish 80:80 --rm --tty timonier/nginx

Note: By default nginx opens port 80.

It is possible to change UID and / or GID of user nginx (user used to run nginx) with environment variables NGINX_UID and NGINX_GID:

docker run --env NGINX_GID=1005 --env NGINX_UID=1005 --interactive --publish 80:80 --rm --tty timonier/nginx

It is possible to run a container in read-only mode if you mount the following folders:

  • /etc if you want to change UID or GID of user nginx.
  • /etc/nginx, /run, /tmp and /var/cache/nginx.

Note: /run, /tmp and /var/cache/nginx can be mount as tmpfs. In that case, /run must have flag exec.

# If you do not want to change "UID" or "GID" of user "nginx"

docker run --interactive --publish 80:80 --read-only --rm --tmpfs /run:exec --tmpfs /tmp --tmpfs /var/cache/nginx --tty timonier/nginx

# If you want to change "UID" or "GID" of user "nginx"

docker run --env NGINX_GID=1005 --env NGINX_UID=1005 --interactive --publish 80:80 --read-only --rm --tmpfs /run:exec --tmpfs /tmp --tmpfs /var/cache/nginx --tty --volume /etc timonier/nginx

Links

About

Small, powerful, scalable web/proxy server

Resources

License

Security policy

Stars

Watchers

Forks