Sign inSign up

khirin/nginx-proxy

By khirin

•Updated over 9 years ago

NGINX Reverse Proxy Image based on Alpine.

Image
0

297

khirin/nginx-proxy repository overview

⁠NGINX Reverse Proxy Image

⁠Description

This is my minimal customized reverse proxy made with nginx on Alpine (with my alpine image⁠). No root process. The start.sh script will check the nginx configuration, follow to the stdout access / error logs and finally launch nginx. It is, in my personal Docker configuration, the only container with published ports. All my other containers have only exposed ports and are available through the nginx reverse proxy.

⁠Packages

• Packages from khirin/alpine⁠ • nginx

⁠Default Configuration

• Configuration from khirin/alpine⁠ • Default user (UID) : nginx (2000) • Default group (GID) : nginx (2000) • Default ports : 10080 10443

⁠Volumes

• /scripts (RO) : Start script and db init script. • /conf (RO) : Virtual hosts configuration files for nginx.

⁠Usage

• Run : Will use the default configuration above. • Build : Example of custom build. You can also directly modify the Dockerfile (I won't be mad, promis !) • Create : Example of custom create.

⁠• Run
docker run --detach \
			-v "/my_script_folder:/scripts:ro" \
			-v "/my_conf_folder:/conf:ro" \
			-p 80:10080 -p 443:10443 \
			khirin/nginx-proxy`
⁠• Build
docker build --no-cache=true \
			--force-rm \
			--build-arg UID="2000" \
			--build-arg GID="2000" \
			--build-arg PORT="10080 10443" \
			-t repo/nginx-proxy .
⁠• Create
docker create --hostname=nginx-proxy \
			-v "/my_script_folder:/scripts:ro" \
			-v "/my_conf_folder:/conf:ro" \
			-p 80:10080 -p 443:10443 \
			--name nginx-proxy \
			repo/nginx-proxy
⁠Author

khirin : DockerHub⁠, GitHub⁠

⁠Thanks

All my images are based on my personal knowledge and inspired by many projects of the Docker community. If you recognize yourself in some working approaches, you might be one of my inspirations (Thanks!).

Tag summary

Content type

Image

Digest

Size

2.6 MB

Last updated

over 9 years ago

docker pull khirin/nginx-proxy