Sign inSign up

diegograssato/nginx

By diegograssato

•Updated over 5 years ago

Image
0

693

diegograssato/nginx repository overview

⁠Nginx docker image

Here is an unofficial Dockerfile for nginx⁠.

You can find several versions of this image in the dedicated docker hub page⁠.
It is a pretty light image: ~ 10 MB uncompressed.

⁠Usage

Get it:

docker pull diegograssato/nginx

Run it:

docker run -d -p 80:80 -p 443:443 --name web diegograssato/nginx
⁠Personalize ports and hosts, an the docker-composer.yml
nginx:
    image: diegograssato/nginx
    ports:
        - 80:80
        - 443:443
    environment:
        DOCUMENT_ROOT: /var/www/symfony/web
        DNSDOCK_ALIAS: symfony.dev
        INDEX_FILE: app_dev.php
        PHP_FPM_SOCKET: sf_php7:9011
⁠Build

Just clone this repo and run:

docker build -t diegograssato/nginx .
docker push diegograssato/nginx

Tag summary

Content type

Image

Digest

Size

7.7 MB

Last updated

over 8 years ago

docker pull diegograssato/nginx