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 will serve Swagger UI at `/swagger` instead of `/`.
93
93
94
94
You can specify a different port via `PORT` variable for accessing the application, default is `8080`.
95
95
96
96
```sh
97
-
docker run -p 80:80 -e PORT=80 swaggerapi/swagger-ui
97
+
docker run -p 80:80 -e PORT=80 docker.swagger.io/swaggerapi/swagger-ui
98
98
```
99
99
100
100
You can specify an IPv6 port via `PORT_IPV6` variable. By default, IPv6 port is not set.
101
101
102
102
```sh
103
-
docker run -p 80:80 -e PORT_IPV6=8080 swaggerapi/swagger-ui
103
+
docker run -p 80:80 -e PORT_IPV6=8080 docker.swagger.io/swaggerapi/swagger-ui
104
104
```
105
105
106
106
You can allow/disallow [embedding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) via `EMBEDDING` variable. By default, embedding is disabled.
107
107
108
108
```sh
109
-
docker run -p 80:80 -e EMBEDDING=true swaggerapi/swagger-ui
109
+
docker run -p 80:80 -e EMBEDDING=true docker.swagger.io/swaggerapi/swagger-ui
110
110
```
111
111
112
112
For more information on controlling Swagger UI through the Docker image, see the Docker section of the [Configuration documentation](configuration.md#docker).
0 commit comments