I successfully run swagger-ui and swagger-editor locally by using their dockerize image and this is my docker-compose.yml.
swagger-editor: image: swag