问题
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