2024-10-18 10:45:50 +02:00
2024-09-02 22:15:50 +02:00
2024-02-20 15:54:14 +01:00
2024-10-18 10:45:50 +02:00
2024-09-02 22:15:50 +02:00
2018-01-15 09:51:40 +01:00
2024-02-20 13:16:14 +01:00
2024-10-11 08:42:54 +02:00
2024-10-11 08:42:54 +02:00
2024-10-11 08:42:54 +02:00
typo 😅
2023-06-06 07:25:20 +02:00
2024-02-20 15:54:14 +01:00
2024-09-03 00:23:56 +02:00
2024-10-18 10:45:50 +02:00

Banner

🏔️ Alpine - Nginx

size version pulls

Nginx base image with additional plugins and custom compiled

SYNOPSIS

What can I do with this? This image will serve as a base for nginx related images that need a high-performance webserver. It can also be used stand alone as a webserver or reverse proxy. It will automatically reload on config changes if configured.

VOLUMES

  • /nginx/etc - Directory of vHost config, must end in *.conf (set in /etc/nginx/nginx.conf)
  • /nginx/var - Directory of webroot for vHost
  • /nginx/ssl - Directory of SSL certificates

COMPOSE

services:
  nginx:
    image: "11notes/nginx:1.26.2"
    container_name: "nginx"
    environment:
      TZ: "Europe/Zurich"
    ports:
      - "8443:8443/tcp"
    volumes:
      - "etc:/nginx/etc"
      - "var:/nginx/var"
      - "ssl:/nginx/ssl"
    restart: "always"
volumes:
  etc:
  var:
  ssl:

DEFAULT SETTINGS

Parameter Value Description
user docker user docker
uid 1000 user id 1000
gid 1000 group id 1000
home /nginx home directory of user docker

ENVIRONMENT

Parameter Value Default
TZ Time Zone
DEBUG Show debug information
NGINX_DYNAMIC_RELOAD Enable reload of nginx on configuration changes in /nginx/etc (only on successful configuration test!)

SOURCE

PARENT IMAGE

BUILT WITH

TIPS

  • Use a reverse proxy like Traefik, Nginx to terminate TLS with a valid certificate
  • Use Lets Encrypt certificates to protect your SSL endpoints

ElevenNotes™️

This image is provided to you at your own risk. Always make backups before updating an image to a new version. Check the changelog for breaking changes. You can find all my repositories on github.

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%