I am actually running a web app in a docker container and I have a simple website for "Under maintenance" in php (but directly in the server, not in a docker container).
I would like to redirect the traffic going to docker to the website "Under maintenance" with some command line but i am a bit lost.
I guess it's about redirecting the port or play with the nginx config file. But if i change the nginx config file, do i need to reboot all the docker containers ?
Can't i just do a redirect with some linux command ? So i could write a script to enable/disable the "Under maintenance" website