From 270620682c1a3c006af4f9d15f9be58537d4d9ee Mon Sep 17 00:00:00 2001 From: hellekin Date: Mon, 5 Oct 2020 14:29:11 +0200 Subject: Create database setup --- config/database.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config') 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 -- cgit v1.2.3