From 61d934f333e739fe8ff5111703f6bfc85c0487a6 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Tue, 22 Sep 2020 20:12:11 +1000 Subject: [PATCH] docker-compose.jsonnet: Use seperate tag for database The database changes rarely, and is disruptive to re-deploy, so we track its image version seperately so it only needs to be upgraded when there's actually a change. --- docker-compose.jsonnet | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.jsonnet b/docker-compose.jsonnet index 0415268..ed9f8d6 100644 --- a/docker-compose.jsonnet +++ b/docker-compose.jsonnet @@ -12,6 +12,7 @@ // Note: "latest" is not recommended in production, as you can't be sure what version // you're actually running, and must manually re-pull to get an updated copy. image_tag:: std.extVar("tag"), + database_tag:: "bb05e37", // tag for DB, which changes less and restarts are disruptive // For each service, whether to deploy that service. enabled:: { @@ -344,7 +345,7 @@ }, [if $.enabled.postgres then "postgres"]: { - image: "quay.io/ekimekim/wubloader-postgres:%s" % $.image_tag, + image: "quay.io/ekimekim/wubloader-postgres:%s" % $.database_tag, restart: "on-failure", [if "postgres" in $.ports then "ports"]: ["%s:5432" % $.ports.postgres], environment: $.env + {