You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
953 B

  1. version: "3"
  2. services:
  3. hermez-api-doc:
  4. container_name: hermez-api-doc
  5. image: swaggerapi/swagger-ui
  6. restart: unless-stopped
  7. ports:
  8. - 8001:8080
  9. volumes:
  10. - .:/spec
  11. environment:
  12. - SWAGGER_JSON=/spec/swagger.yml
  13. hermez-api-mock:
  14. container_name: hermez-api-mock
  15. image: stoplight/prism
  16. restart: unless-stopped
  17. ports:
  18. - 4010:4010
  19. volumes:
  20. - .:/spec
  21. command: mock -h 0.0.0.0 "/spec/swagger.yml"
  22. #docker run -d -p 80:8080 -e URL=/foo/swagger.json -v /bar:/usr/share/nginx/html/foo swaggerapi/swagger-editor
  23. hermez-api-editor:
  24. container_name: hermez-api-editor
  25. image: swaggerapi/swagger-editor
  26. restart: unless-stopped
  27. ports:
  28. - 8002:8080
  29. volumes:
  30. - .:/spec
  31. environment:
  32. - SWAGGER_FILE=/spec/swagger.yml