Skip to content

Commit e468cae

Browse files
committed
specify db default
1 parent 2844dda commit e468cae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

config/database.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ default: &default
2020
# For details on connection pooling, see Rails configuration guide
2121
# http://guides.rubyonrails.org/configuring.html#database-pooling
2222
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
23-
username: <%= ENV.fetch('DATABASE_USER') { '' } %>
24-
password: <%= ENV.fetch('DATABASE_PASSWORD') { '' } %>
25-
host: <%= ENV.fetch('DATABASE_HOST') { '' } %>
26-
port: <%= ENV.fetch('DATABASE_PORT') { '' } %>
23+
username: <%= ENV.fetch('DATABASE_USER') { 'postgres' } %>
24+
password: <%= ENV.fetch('DATABASE_PASSWORD') { 'password' } %>
25+
host: <%= ENV.fetch('DATABASE_HOST') { 'localhost' } %>
26+
port: <%= ENV.fetch('DATABASE_PORT') { '5432' } %>
2727

2828
development:
2929
<<: *default

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
depends_on:
1717
- db
1818
db:
19-
image: "postgres:10.4"
19+
image: "postgres:10.4-alpine"
2020
environment:
2121
- "POSTGRES_USER=postgres"
2222
- "POSTGRES_PASSWORD=password"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy