Skip to content

Commit 4725035

Browse files
authored
Update README.md
1 parent cb2827b commit 4725035

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ By default, Waitress has been setup to server on all hostnames on port 80 using
103103

104104
You may have different needs so you can adjust and manipulate this by passing in environment variable to adjust the settings.
105105

106-
There are 2 options for doing this.
106+
There are 2 options for doing this:
107+
108+
107109
1. Pass a comma separated list of `host:port,host:port` to the `WAITRESS_LISTEN` param
108110

109111
The `WAITRESS_LISTEN` param takes precedence over `WAITRESS_HOST`/`WAITRESS_PORT` options, meaning if you include all 3, host and port settings will be ignored.
@@ -124,7 +126,7 @@ docker run -d -p 80:8080 -e WAITRESS_HOST=0.0.0.0 -e WAITRESS_PORT=8080 myimage
124126
125127
Many of the
126128
[options](https://docs.pylonsproject.org/projects/waitress/en/stable/runner.html#invocation) that can be passed to `waitress-serve`
127-
can also supported by passing in environment variables. These params are only included in the call if they are included
129+
are supported by passing in environment variables. These params are only included in the `waitress-serve` call if they are present
128130
in the environment. The supported options are:
129131
130132
| Environment Variable | Waitress Param |
@@ -146,12 +148,21 @@ in the environment. The supported options are:
146148
Where `$VAL` is the value passed into the environment. For example, to set the number of threads to 5 use:
147149
```bash
148150
docker run -d -p 80:80 -e WAITRESS_THREADS=5 myimage
149-
````
151+
```
152+
Translates to command
153+
```bash
154+
waitress-serve --listen=*:80 --threads=5 app.wsgi:application
155+
```
156+
150157
151158
For those without any value, simply pass a 1. For example, to turn off IPv6 use:
152159
```bash
153160
docker run -d -p 80:80 -e WAITRESS_NO_IPV6=1 myimage
154-
````
161+
```
162+
Translates to command
163+
```bash
164+
waitress-serve --listen=*:80 --no-ipv6 app.wsgi:application
165+
```
155166
156167
# Credits
157168
This dockerfile setup is based on https://github.com/tiangolo/meinheld-gunicorn-docker

0 commit comments

Comments
 (0)