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

+4-4
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

+1-1
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)