Skip to content

fullfrontend/nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx

nginx image configured with Confd. This image is meant to run behind a load balancer like Traefik

/!\ Since I need to use Brotli compression algorithm, NGINX is compiled with it available, enjoy!

How to use this image

This image is made to be used in conjunction with a php-fpm image [like mine] (https://github.com/fullfrontend/php-fpm)

I use docker compose to handle my stack so here is my nginx config:

nginx:
    image: fullfrontend/nginx
    ports:
        - 80
        
    environment:
        PHP_UPSTREAM: "php-runner:9000"
        VIRTUAL_HOST: "fullfrontend.dev"
        DOCUMENT_ROOT: "/var/www/fullfrontend/"

    volumes_from:
        - application

Environment variables

  • PHP_UPSTREAM: where is running php-fpm
  • VIRTUAL_HOST: host name to respond to
  • DOCUMENT_ROOT: where the files are located

Example

A Full working example using docker-compose is available in the example folder

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published