From 8ecd772949573e89b373f8df4577ffb3b4c929d4 Mon Sep 17 00:00:00 2001 From: Robin Bourianes Date: Thu, 21 Jan 2021 17:49:37 +0100 Subject: [PATCH] feat: allow to specify postgis db name using env vars. [skip doc] [skip build] --- .env.default | 1 + deploy/postgis.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.default b/.env.default index b57cced4d..d9df0316c 100644 --- a/.env.default +++ b/.env.default @@ -138,6 +138,7 @@ POSTGIS_IMAGE=postgis/postgis POSTGIS_TAG=13-3.0-alpine POSTGIS_USER=postgres POSTGIS_PASSWORD=postgres +POSTGIS_DB=db POSTGIS_VOLUME_PATH= # Prometheus diff --git a/deploy/postgis.yml b/deploy/postgis.yml index 42c127932..834fe4b28 100644 --- a/deploy/postgis.yml +++ b/deploy/postgis.yml @@ -6,6 +6,7 @@ services: environment: - POSTGRES_USER=${POSTGIS_USER} - POSTGRES_PASSWORD=${POSTGIS_PASSWORD} + - POSTGRES_DB=${POSTGIS_DB} volumes: - ${POSTGIS_VOLUME_PATH}postgis_data:/var/lib/postgresql/data healthcheck: