How to Use Swagger with Rails dockerized project

江枫思渺然 提交于 2021-01-29 15:19:02

问题


hope you are fine

Actually, I have to make documentation of my rails APIs & for this, I integrate gem rswag in my application and follow the documentation step by step but when I run

RAILS_ENV=test rails g rswag:specs:install

I stuck in an error

Can't connect to local MySQL server through socket '/authenticate/tmp/sockets/puma.sock'

but I don't know as my app is dockerized , if I have to user Swager docker image or, make a MySql service in dockercompose.yml to solve this issue ?

来源:https://stackoverflow.com/questions/65329550/how-to-use-swagger-with-rails-dockerized-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!