Is there anyway to stop my container from exiting when running my Rails server with foreman. When foreman does its thing and starts up my rails server and sidekiq it immediately exits with exit code 0 as expected. Is there any way to prevent this behaviour and keep the container running?
In my case it still running after after running Rails and Sidekiq:
➜ ~ ps aux | grep foreman
maxd 2194 0.0 0.2 2486168 29004 s000 S+ 2:09PM 0:00.56 foreman: master
Seems like foreman starts in foreground always. May be you problem doesn't related to foreman (try to check Rails and Sidekiq logs)? How are you running it in Docker container?