Fix formatting

This commit is contained in:
Tianon Gravi 2017-04-06 11:28:35 -07:00
parent b9cb1b7403
commit 05c3cc6c69
1 changed files with 5 additions and 7 deletions

View File

@ -72,7 +72,7 @@ Out-of-the-box, Nginx doesn't support using environment variables inside most co
Here is an example using docker-compose.yml: Here is an example using docker-compose.yml:
``` ```yaml
web: web:
image: nginx image: nginx
volumes: volumes:
@ -91,18 +91,16 @@ The `mysite.template` file may then contain variable references like this:
` `
## running nginx in debug mode ## running nginx in debug mode
Images since version 1.9.8 come with `nginx-debug` binary that produces Images since version 1.9.8 come with `nginx-debug` binary that produces complete output when using higher verbosity log levels. It can be used with simple CMD substitution:
complete output when using higher verbosity log levels. It can be used
with simple CMD substitution:
```console ```console
docker run --name my-nginx -v /host/path/nginx.conf:/etc/nginx/nginx.conf:ro -d nginx nginx-debug -g 'daemon off;' $ docker run --name my-nginx -v /host/path/nginx.conf:/etc/nginx/nginx.conf:ro -d nginx nginx-debug -g 'daemon off;'
``` ```
Similar configuration in docker-compose.yml may look like this: Similar configuration in docker-compose.yml may look like this:
``` ```yaml
web: web:
image: nginx image: nginx
volumes: volumes: