Skip to content

Instantly share code, notes, and snippets.

@kevinmmartins
Last active May 2, 2019 13:33
Show Gist options
  • Save kevinmmartins/0ac1ca8337bb6cfde2cc97c0fb040565 to your computer and use it in GitHub Desktop.
Save kevinmmartins/0ac1ca8337bb6cfde2cc97c0fb040565 to your computer and use it in GitHub Desktop.
Docker Compose to Imposter Swagger
FROM outofcoffee/imposter-openapi
version: '3'
services:
mock:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/opt/imposter/config
ports:
- "8443:8443"
{
"plugin": "com.gatehill.imposter.plugin.openapi.OpenApiPluginImpl",
"specFile": "your_swagger_file.yaml"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment