Sign inSign up

dalimit/quick-nginx

By dalimit

Updated over 8 years ago

Nginx web server with a very basic but yet dynamic configuration.

Image
0

419

dalimit/quick-nginx repository overview

See it on Github

Nginx web server with a very basic but yet dynamic configuration. It can be used to serve static files as well as using a PHP-FPM backend in a separate container.

Env. variableDescription
SERVER_ROOTServer root directory, defaults to /app
SERVER_INDEXServer index (only one file), defaults to index.html
PHP_FPM_HOSTSet the PHP-FPM host to use, it must have port 9000 exposed
FORCE_PHP_INDEXDrops a 404 when requesting other PHP files than your index

docker-compose.yml example:

version: '3'
services:
  php:
    image: urbit/lumen-php-fpm
    volumes:
      - .:/var/www/application
  nginx:
    image: dalimit/quick-nginx
    environment:
      SERVER_INDEX: public/index.php
      SERVER_ROOT: /var/www/application
      PHP_FPM_HOST: php
      FORCE_PHP_INDEX: "true"

Tag summary

Content type

Image

Digest

Size

7.5 MB

Last updated

over 8 years ago

docker pull dalimit/quick-nginx