Skip to content

Commit

Permalink
Set POSTGRES_PASSWORD in docker-compose.yml
Browse files Browse the repository at this point in the history
The newest postgres image requires a password for the postgres user.
  • Loading branch information
cdinger committed May 13, 2020
1 parent 06b7b25 commit 4acc8ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ development:
host: postgres
database: study_finder_development
username: postgres
password:
password: postgres

test:
adapter: postgresql
host: postgres
database: study_finder_test
username: postgres
password:
password: postgres

staging:
url: <%= ENV['DATABASE_URL'] %>
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
- elasticsearch:/usr/share/elasticsearch/data
postgres:
image: postgres:11
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- postgres:/var/lib/postgresql/data
ports:
Expand Down

0 comments on commit 4acc8ee

Please sign in to comment.