2023-05-23 15:11:24 +02:00
2023-05-03 23:24:30 +02:00
2018-01-15 09:51:40 +01:00
2022-11-03 08:36:51 +01:00
2018-01-15 09:51:40 +01:00

docker-nginx

Container to run your own nginx process inside an alpine docker container. Nginx is compiled from source and currently has additional modules.

Volumes

  • /nginx/etc - vHost config, must end in *.conf (set in /etc/nginx/nginx.conf)
  • /nginx/www - Webroot for vHost
  • /nginx/ssl - SSL certificate directory

Run

docker run --name nginx \
  -v /local/etc:/nginx/etc \
  -v /local/www:/nginx/www \
  -v /local/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.

Built 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%