libresh / libre.sh

Moved to https://lab.libreho.st/libre.sh/compose.libre.sh
GNU Affero General Public License v3.0
189 stars 22 forks source link

Maintenance command for web services #175

Closed almereyda closed 5 years ago

almereyda commented 5 years ago

When caring for services, at times their web presence is disabled for maintenance reasons. A repeating pattern is:

libre stop
libre disable
vim docker-compose.yml
docker-compose up -d
docker-compose stop
vim docker-compose.yml
docker-compose up -d
docker-compose stop
libre enable
libre start

It could be nice to map maintenance pages on those services exposing a web frontend via a simple

libre maintenance

to toggle between the states.

pierreozoux commented 5 years ago

Indeed! I think it would.be 5 lines of code, you just need an nginx container with your maintenance page.

Libre maintenance start

Libre stop Docker run --name current dir -e virtual-host=current dir maintenance

Libre maintenance stop

Docker stop current dir Libre start

(Sorry On mobile)

pierreozoux commented 5 years ago

Do you have this maintenance image? And do you plan to do that in the coming week ? If not I'll just close the issue, and you PR when you have the code

unteem commented 5 years ago

Closing issue here repo is migrated to lab.libre.host.st

please follow issue here