Skip to content

Instantly share code, notes, and snippets.

@arcanemachine
Created February 27, 2026 19:34
Show Gist options
  • Select an option

  • Save arcanemachine/d9770b9bfdc8a36cc06362b753e31cc3 to your computer and use it in GitHub Desktop.

Select an option

Save arcanemachine/d9770b9bfdc8a36cc06362b753e31cc3 to your computer and use it in GitHub Desktop.
Easy-bake Docker Compose + Swagger UI with any OpenAPI spec
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