Skip to content

Commit 36e125a

Browse files
committed
specify db default
1 parent 2844dda commit 36e125a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
services:
13-
postgres:
13+
db:
1414
image: postgres:10.4-alpine
1515
env:
1616
POSTGRES_USER: postgres

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') { 'db' } %>
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