diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-05 14:29:11 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-05 14:29:11 +0200 |
commit | 270620682c1a3c006af4f9d15f9be58537d4d9ee (patch) | |
tree | 966694e5c04bd1997f4207f4785bc924fbff46a5 /config/database.yml | |
parent | 8fa725f194b129e11514c2291067576c886c3232 (diff) | |
download | incommon-map-270620682c1a3c006af4f9d15f9be58537d4d9ee.tar.gz |
Create database setup
Diffstat (limited to 'config/database.yml')
-rw-r--r-- | config/database.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/database.yml b/config/database.yml index bfc1d74..233210c 100644 --- a/config/database.yml +++ b/config/database.yml @@ -20,6 +20,11 @@ default: &default # For details on connection pooling, see Rails configuration guide # https://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + host: <%= ENV.fetch("DATABASE_HOST", "db") %> + database: <%= ENV.fetch("POSTGRES_DB", "the_map_db") %> + username: <%= ENV.fetch("POSTGRES_USER", "postgres") %> + password: <%= ENV.fetch("POSTGRES_PASSWORD", "postgres") %> + development: <<: *default |