/nginx

Nginx webserver with optional link to PHP service on waeckerlin/php-fpm

Primary LanguageHTMLMIT LicenseMIT

NGINX Webserver Docker Image

mwaeckerlin/nginx is a simple nginx webserver in less than 6MB. High secure: No shell means less risks for backdoors, just nginx running as unprivileged user.

If you need PHP, use mwaeckerlin/php-fpm. The image forwards php files to port 9000 of host php-fpm, if that host is available.

Info: LDAP has been removed and will be implemented later in mwaeckerlin/ldap-auth.

Image size: ca. 7.17MB (depends on parent image sizes and changes)

Port

Exposes nginx on port 8080.

Configuration

  • serves from /app
  • add additional configuration directly to /etc/nginx
  • should you need ssl, create /etc/nginx/dhparam.pem, see example in mwaeckerlin/reverse-proxy

Docker Compose Sample with Mounted App Path

See docker-compose.yml for an example:

  • docker-compose build
  • docker-compose up
  • browse to: http://localhost:8080
  • stop with Ctrl+C

Command Line Example With Default Page

docker run -it --rm --name myservice -p 8005:8080 mwaeckerlin/nginx

Browse to http://localhost:8005. Cleans up when you press Ctrl+C.