Replies: 5 comments
-
|
@Redsandro did you find a solution to this? |
Beta Was this translation helpful? Give feedback.
-
|
@DekiChan I did not find a solution yet, and I still have this problem. I did wrap as many try-and-catches at every level so the container never ever ever ever crashes. But it still happens now and then. Some upstream vectors just can't be anticipated 100% of the time. |
Beta Was this translation helpful? Give feedback.
-
|
@Redsandro, quite embarrassingly I figured out we're using However, I solved the issue by using combination of |
Beta Was this translation helpful? Give feedback.
-
|
YOU ARE THE BEST!!! Nginx INSIDE Docker My solution is: location / { |
Beta Was this translation helpful? Give feedback.
-
|
@zibellon , it's works for me, just one difference with your suggest, I moved out the resolver configuration to the main http block(because I've more than one host with this behaviour). Thank you very much! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem:
When a request from shodan.io crashes the smtp-server (see nodemailer/smtp-server#128) in my api app served over https, it is automatically restarted due to
docker-compose.ymlrestart: always.However, the app doesn't work after restarting:
nginx-proxyreturns502.Expected
docker-compose restart apiand the logs shows it's listening, I'm still getting 502.docker-compose restartrestarting everything includingnginx-proxyandletsencrypt-nginx-proxy-companion, the logs show listening, but I'm still getting 502.What works:
A full
docker-compose stop && docker-compose up -dbrings up the app and everything works. I don't understand the effective difference betweendocker-compose restartanddocker-compose stop && docker-compose up -d, which puzzles me.But I need to automate this error recovery. I thought
restart:alwaysshould be sufficient. Is anyone else experiencing something similar? I searched, but I am human. Are there any known issues related to this?docker-compose.ymlBeta Was this translation helpful? Give feedback.
All reactions