Sign inSign up

binhex/arch-nginx

By binhex

Updated 4 days ago

Docker build script for Arch Linux base with NGINX

Image
2

100K+

binhex/arch-nginx repository overview

Application

NGINX

Description

NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. It started out as a web server designed for maximum performance and stability. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers.

Build notes

Latest GitHub master commit.

Usage

docker run -d \
    --name=<container name> \
    -v <path for config files>:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -p <host port for http>:8080 \
    -p <host port for https>:8443 \
    -e HEALTHCHECK_COMMAND=<command> \
    -e HEALTHCHECK_ACTION=<action> \
    -e HEALTHCHECK_HOSTNAME=<hostname> \
    -e UMASK=<umask for created files> \
    -e PUID=<uid for user> \
    -e PGID=<gid for user> \
    binhex/arch-nginx

Please replace all user variables in the above command defined by <> with the correct values.

Access application

Command line only via:

docker exec -it <container name> bash

Example

docker run -d \
    --name=nginx \
    -v /apps/docker/nginx:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -p 8080:8080 \
    -p 8443:8443 \
    -e UMASK=000 \
    -e PUID=0 \
    -e PGID=0 \
    binhex/arch-nginx

Notes

User ID (PUID) and Group ID (PGID) can be found by issuing the following command for the user you want to run the container as:-

id <username>

If you appreciate my work, then please consider buying me a beer :D

PayPal donation

Documentation | Support forum

Tag summary

Content type

Image

Digest

sha256:700b86350

Size

363.4 MB

Last updated

4 days ago

docker pull binhex/arch-nginx