From 43c3c0d39825ecc7209deff755e68ffcc3a4544f Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Thu, 21 Dec 2023 17:37:02 -0700 Subject: [PATCH] Try zero-downtime deploy --- deploy/deploy | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deploy/deploy b/deploy/deploy index 14659e34..44583157 100755 --- a/deploy/deploy +++ b/deploy/deploy @@ -27,9 +27,8 @@ ln --symbolic --force \ compose.prod.yml \ compose.override.yml -# We have limited disk space in our deployment environment, so the app needs to -# go down, delete its image, download the new image, and start it back up. -# TODO: Zero-downtime deployments! More compact image! docker compose down +docker compose up --pull "always" --detach + +# Cleanup after; for a brief period, two copies of the image may be present. docker system prune --all --force -docker compose up --detach