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.
pull/175/head
Mike Lang 4 years ago
parent 1b12c05e0e
commit 61d934f333

@ -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 + {

Loading…
Cancel
Save