From 3d767376f8c6f4f9922c30aa8ebdc3ce621afd6b Mon Sep 17 00:00:00 2001 From: Thomas Burkhalter Date: Mon, 18 Mar 2024 12:05:35 +0100 Subject: [PATCH] Add postgis specific config, use prod version in compose --- config/database.yml | 6 ++++++ docker-compose.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/database.yml b/config/database.yml index f6cb7219..7e081232 100644 --- a/config/database.yml +++ b/config/database.yml @@ -8,6 +8,12 @@ default: &default username: <%= ENV.fetch('RAILS_DB_USERNAME') { 'decidim_zuerich' } %> password: <%= ENV.fetch('RAILS_DB_PASSWORD') { 'dN5GH8y3lX' } %> + schema_search_path: <%= ENV.fetch('RAILS_DB_SCHEMA_SEARCH_PATH') { 'public' } %> + postgis_extension: <%= ENV.fetch('RAILS_DB_POSTGIS_EXTENSION') { 'postgis' } %> + postgis_schema: <%= ENV.fetch('RAILS_DB_POSTGIS_SCHEMA') { 'public' } %> + su_username: <%= ENV.fetch('RAILS_DB_SU_USERNAME') { 'postgres' } %> + su_password: <%= ENV.fetch('RAILS_DB_SU_PASSWORD') { 'postgres' } %> + development: <<: *default database: <%= ENV.fetch('RAILS_DB_NAME', 'decidim_zuerich_development') %> diff --git a/docker-compose.yml b/docker-compose.yml index 8ef4b0b2..4963fb42 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -30,7 +30,7 @@ services: tty: true stdin_open: true pg: - image: postgis/postgis:14-3.4-alpine + image: postgis/postgis:14-3.3-alpine environment: - POSTGRES_USER=decidim_zuerich - POSTGRES_PASSWORD=dN5GH8y3lX