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
By default, Waitress has been setup to server on all hostnames on port 80 using both IPv4 and IPv6. This translates to `--listen:*:80`. This works for most applications using the basic setups listed above.
102
+
By default, Waitress has been setup to server on all hostnames on port 80 using both IPv4 and IPv6. This translates to `--listen=*:80`. This works for most applications using the basic setups listed above.
103
103
104
104
You may have different needs so you can adjust and manipulate this by passing in environment variable to adjust the settings.
105
105
106
-
There are 2 options for doing this:
106
+
##### `WAITRESS_LISTEN`
107
107
108
+
Pass a comma separated list of host:port (EG: `host:post,host:port,host:port`) to the `WAITRESS_LISTEN` param
108
109
109
-
1. Pass a comma separated list of `host:port,host:port` to the `WAITRESS_LISTEN` param
110
-
111
-
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.
112
-
113
-
To set Waitress to use port 8080, sent the `WAITRESS_LISTEN` param like
110
+
To set Waitress to use port 8080, sent the `WAITRESS_LISTEN` param like
114
111
```bash
115
112
docker run -d -p 80:8080 -e WAITRESS_LISTEN=*:8080 myimage
116
113
````
117
114
118
-
2. Pass the host and port separately as `WAITRESS_HOST` and/or `WAITRESS_PORT`. If port is left out, it will default to 80.
115
+
##### `WAITRESS_HOST` / `WAITRESS_PORT`
116
+
Pass the host and port separately as `WAITRESS_HOST` and/or `WAITRESS_PORT`. If port is left out, it will default to 80.
119
117
120
118
If you want only IPv4, you could use advanced param listed in the section below, but you could also use
121
119
```bash
122
120
docker run -d -p 80:8080 -e WAITRESS_HOST=0.0.0.0 -e WAITRESS_PORT=8080 myimage
123
121
````
124
122
123
+
**Note:** The `WAITRESS_LISTEN` param takes precedence over `WAITRESS_HOST`&`WAITRESS_PORT` options, meaning if you include all 3, `WAITRESS_HOST`&`WAITRESS_PORT` will be ignored.
0 commit comments