Created
February 27, 2026 19:34
-
-
Save arcanemachine/d9770b9bfdc8a36cc06362b753e31cc3 to your computer and use it in GitHub Desktop.
Easy-bake Docker Compose + Swagger UI with any OpenAPI spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| swagger-ui: | |
| image: swaggerapi/swagger-ui:latest | |
| ports: | |
| - "8080:8080" | |
| volumes: | |
| # Save your OpenAPI spec to a file in the same directory called `openapi.yaml` | |
| - ./openapi.yaml:/tmp/openapi.yaml:ro | |
| environment: | |
| - SWAGGER_JSON=/tmp/openapi.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment