I have shifted my rails application to docker. Everything is working fine except the rails delayed_job. I have use delayed_job to send email. I have started my job through command
docker-compose run web rake jobs:work it has started succesfully as shown in the image.
Now when I am trying to send email in console it is showing that the email is initiated as shown in the above image.
Do I have to include any line in my docker-compose.yml or Dockerfile.
My Dockerfile is :
RUN mkdir -p /railsapp
RUN apt-get update && apt-get install -y nodejs --no-install-recommends
RUN apt-get update && apt-get install -y mysql-client --no-install-recommends
COPY Gemfile /railsapp/
COPY Gemfile.lock /railsapp/
RUN bundle install
COPY . /railsapp
CMD ["rails", "server", "-b", "0.0.0.0"]
My docker-compose.yml is :
I am completely new to docker.