HUB
Sign inSign up

dgadams/nginx

By dgadams

•Updated about 12 hours ago

nginx - a small variation of nginx build on debian and shrunk down to 4.2MB compressed

Image
Networking
0

823

dgadams/nginx repository overview

⁠nginx small build

This is a small image of nginx web server. It is useful for static web pages. Both http and https. I use it as a reverse proxy. Designed for simple projects. Use an official nginx image for more complex projects.

⁠Notes:

⁠Usage:

I generally run this with a docker compose file:

name: web-server
services:
  web-server:
    container_name: web-server
    image: dgadams/nginx:alpine
    hostname: web-server.dgadams.us # define a FQDN so https can be hosted to cloudflare
    domainname: dgadams.us
    restart: unless-stopped
    ports:
      - 80:80
      - 443:443
    volumes:
      - /data/www/nginx.conf:/etc/nginx/nginx.conf
      - /data/www/html:/var/www/html
      - /data/.certs:/etc/nginx/certs
#     - /data/include.d:/etc/nginx

Tag summary

Content type

Image

Digest

sha256:253b56786…

Size

3.5 MB

Last updated

about 12 hours ago

docker pull dgadams/nginx