swagger-api / swagger-editor

Swagger Editor
https://editor.swagger.io
Apache License 2.0
8.86k stars 2.24k forks source link

[next-v5] Allow Swagger file to be set locally via docker #5119

Open tokidoki11 opened 3 months ago

tokidoki11 commented 3 months ago

Description

I only run docker swagger v5 (alpha96) without building the react

in version 4 you can specify env variable to set the definition file location docker run -d -p 80:8080 -v $(pwd):/tmp -e SWAGGER_FILE=/tmp/swagger.json swaggerapi/swagger-editor

Currently I think it only support default file definition by building react yourself via .env file

Describe the solution you'd like

allow SWAGGER_FILE env variable to setup default file on docker run

Describe alternatives you've considered

Additional context

dante-saggin commented 2 months ago

nice I was wandering about the same thing. In fact, I was expecting that it could read it from an environment variable in the docker container.

dev-comrade commented 1 week ago

i hope somebody make answer, how to load local file straightaway after start docker container