2022-11-02 00:17:07 +01:00
2020-09-08 11:40:38 +02:00
2022-11-02 00:17:07 +01:00
2018-01-15 09:51:40 +01:00
2022-11-02 00:13:14 +01:00
2022-11-02 00:17:07 +01:00
2022-11-02 00:17:07 +01:00
2022-11-02 00:17:07 +01:00
2018-01-15 09:51:40 +01:00
2019-07-09 07:53:19 +02:00

docker-nginx

Dockerfile to create and run your own nginx process inside an alpine docker container. Nginx is compiled from source and currently has one added optional module.

Volumes

/nginx/etc

Purpose: vHost config, must end in *.conf (set in /etc/nginx/nginx.conf)

/nginx/www

Purpose: Webroot for vHost

/nginx/ssl

Purpose: SSL certificate directory

Run

docker run --name nginx \
   -v volume-etc:/nginx/etc \
   -v volume-www:/nginx/www \
   -v volume-ssl:/nginx/ssl:ro \
   -d 11notes/nginx:[tag]

difference between official docker images

Additional plugins:

    module_headers_more

Nginx configuration:

    all data moved to /nginx (in compiler!)

Docker -u 1000:1000 (no root initiative)

As part to make containers more secure, this container will not run as root, but as uid:gid 1000:1000. Therefore the default TCP port 80 was changed to 8080 (/source/default.conf).

Build with

Tips

Description
Nginx, slim and distroless to be used behind a reverse proxy or as full version as a proxy
Readme MIT 186 KiB
Languages
Dockerfile 100%