From d588f2ff65fcc12bd52aadb793212aeb669ca11e Mon Sep 17 00:00:00 2001 From: Jan Kiesewetter <3628035+t3easy@users.noreply.github.com> Date: Fri, 23 Dec 2022 21:21:40 +0100 Subject: [PATCH] Define PostgreSQL version in .env (#322) Resolves: #321 --- .env | 1 + docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 74425e9..8591ddd 100644 --- a/.env +++ b/.env @@ -1,5 +1,6 @@ IMAGE_REPO=zammad/zammad-docker-compose MEMCACHE_SERVERS=zammad-memcached:11211 +POSTGRES_VERSION=15.1-alpine POSTGRES_PASS=zammad POSTGRES_USER=zammad REDIS_URL=redis://zammad-redis:6379 diff --git a/docker-compose.yml b/docker-compose.yml index cfed73d..614a98b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: - HOLD_DAYS=10 - POSTGRESQL_USER=${POSTGRES_USER} - POSTGRESQL_PASSWORD=${POSTGRES_PASS} - image: postgres:15.0-alpine + image: postgres:${POSTGRES_VERSION} restart: ${RESTART} volumes: - zammad-backup:/var/tmp/zammad @@ -61,7 +61,7 @@ services: environment: - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASS} - image: postgres:15.1-alpine + image: postgres:${POSTGRES_VERSION} restart: ${RESTART} volumes: - postgresql-data:/var/lib/postgresql/data