Sign inSign up

sebstinkeste/nginx

By sebstinkeste

Updated over 10 years ago

conteneur nginx avec variables d'environnement

Image
0

821

sebstinkeste/nginx repository overview

alt text

Pull and Run image Nginx

$ docker pull sebstinkeste/nginx
$ docker run -it sebstinkeste/nginx bash

Presentation

The default workdir is /var/www/ and the default Nginx Document Root is /usr/share/nginx/html.

Environment variables

Set your nginx.conf

The nginx configuration is dynamic.

environment:
	FRONTEND_PORT_80_TCP_PORT: "80"
	DOCUMENT_ROOT: "/var/www/"
	DIRECTORY_INDEX: "index.php index.html"
	SERVER_NAME: "localhost"
	FASTCGI_INDEX: "index.php"

Advanced environment variables

environment:
   FASTCGI_PASS: "{containerName}_php_1:9000"
   PHPFPM: "{containerName}_php_1:9000" 

[DEPRECATED] Future versions of Docker will not support links - you should remove them for forwards-compatibility.

Contributors

Tag summary

Content type

Image

Digest

Size

52.7 MB

Last updated

over 10 years ago

docker pull sebstinkeste/nginx