You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This image is based on the official **[Nginx (mainline)](https://hub.docker.com/_/nginx/)** Docker image and extends it with the ability to have **virtual hosts created automatically** when adding new directories. For that to work, it integrates two tools that will take care about the whole process: **[watcherd]()** and **[vhost-gen]()**.
11
+
This image is based on the official **[Nginx (mainline)](https://hub.docker.com/_/nginx/)** Docker image and extends it with the ability to have **virtual hosts created automatically** when adding new directories. For that to work, it integrates two tools that will take care about the whole process: **[watcherd](https://github.com/devilbox/watcherd)** and **[vhost-gen](https://github.com/devilbox/vhost-gen)**.
12
12
13
13
From a users perspective, you mount your local project directory into the Docker under `/shared/httpd`. Any directory then created in your local project directory wil spawn a new virtual host by the same name. Additional settings such as custom server names, PHP-FPM or even different nginx templates per project are supported as well.
14
14
15
15
----
16
16
17
-
Find me on **[Docker Hub](https://hub.docker.com/r/cytopia/nginx-mainline)**:
17
+
Find me on **[Docker Hub](https://hub.docker.com/r/devilbox/nginx-mainline)**:
<small>**Latest build:**This container is built every night by [travis-ci](https://travis-ci.org/devilbox/docker-nginx-mainline).</small>
22
22
23
23
----
24
24
@@ -170,14 +170,14 @@ Mount your local directort `~/my-host-www` into the docker and server those file
170
170
171
171
**Note:** Files will be server from `~/my-host-www/htdocs`.
172
172
```bash
173
-
$ docker run -d -p 80:80 -v ~/my-host-www:/var/www/default -t cytopia/nginx-mainline
173
+
$ docker run -d -p 80:80 -v ~/my-host-www:/var/www/default -t devilbox/nginx-mainline
174
174
```
175
175
176
176
#### 2. Serve PHP files with PHP-FPM
177
177
178
178
Note, for this to work, the `~/my-host-www` dir must be mounted into the Nginx Docker as well as into the php-fpm docker.
179
179
180
-
You can also attach other PHP-FPM version: [PHP-FPM 5.4](https://github.com/cytopia/docker-php-fpm-5.4), [PHP-FPM 5.5](https://github.com/cytopia/docker-php-fpm-5.5), [PHP-FPM 5.6](https://github.com/cytopia/docker-php-fpm-5.6), [PHP-FPM 7.0](https://github.com/cytopia/docker-php-fpm-7.0) or [PHP-FPM 7.1](https://github.com/cytopia/docker-php-fpm-7.1)
180
+
You can also attach other PHP-FPM version: [PHP-FPM 5.4](https://github.com/cytopia/docker-php-fpm-5.4), [PHP-FPM 5.5](https://github.com/cytopia/docker-php-fpm-5.5), [PHP-FPM 5.6](https://github.com/cytopia/docker-php-fpm-5.6), [PHP-FPM 7.0](https://github.com/cytopia/docker-php-fpm-7.0), [PHP-FPM 7.1](https://github.com/cytopia/docker-php-fpm-7.1), [PHP-FPM 7.2](https://github.com/cytopia/docker-php-fpm-7.2) or [HHVM](https://github.com/cytopia/docker-hhvm-latest).
181
181
182
182
Each PHP-FPM docker also has the option to enable Xdebug and more, see their respective Readme files for futher settings.
0 commit comments