Sign inSign up

binhex/arch-nginx

By binhex

•Updated 8 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 ENABLE_STARTUP_SCRIPTS=<yes|no> \
    -e STARTUP_SCRIPTS_MODE=<wait|parallel> \
    -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

ENABLE_STARTUP_SCRIPTS when set to yes (default no) will allow a user to install additional packages from the official Arch Repository or the Arch User Repository (AUR) via scripts located in the folder /config/nginx/scripts/.

STARTUP_SCRIPTS_MODE controls how those scripts are executed, set to wait (default) to run each script in turn and wait for it to complete before the next script runs, or parallel to run all scripts at the same time.

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:4615e85bd…

Size

365.3 MB

Last updated

8 days ago

docker pull binhex/arch-nginx