Skip to content

Commit

Permalink
Add postgis specific config, use prod version in compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Mar 18, 2024
1 parent 7276106 commit 3d76737
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') %>
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d76737

Please sign in to comment.