Skip to content

Commit ae4af57

Browse files
committed
Set a postgres password to database container
1 parent 80ab55e commit ae4af57

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ RACK_ENV=development
22
DB_ADAPTER=postgres
33
DATABASE=postgres_dev
44
DB_USER=postgres
5-
DB_PASSWORD=''
5+
DB_PASSWORD=postgres_password
66
DB_HOST=database
77
DB_PORT=5432
88
DB_MAX_CONNECTION=10

.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ RACK_ENV=test
22
DB_ADAPTER=postgres
33
DATABASE=postgres_test
44
DB_USER=postgres
5-
DB_PASSWORD=''
5+
DB_PASSWORD=postgres_password
66
DB_HOST=database
77
DB_PORT=5432
88
DB_MAX_CONNECTION=10

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
## [2.0.4] - 2020-02-22
77
### Changed
88
- Updated Puma gem to 4.3 version
9-
- Added command to stop containers in travis configutarion
10-
- Increased timeout connection database from 5 to 30 seconds
9+
- Added command to stop and remove containers in travis configutarion
10+
- Set a postgres password to database container
1111

1212
## [2.0.3] - 2020-01-12
1313
### Changed

config/initializers/orm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Database
66
DB_LOG_FILE = ENV['DB_LOG_FILE']
77
DB_CONFIG_FILE = ENV['DB_CONFIG_FILE']
88
DB_MIGRATIONS_DIRECTORY = ENV['DB_MIGRATIONS_DIRECTORY']
9-
TIMEOUT_SECONDS = 30
9+
TIMEOUT_SECONDS = 5
1010

1111
class << self
1212
def db

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
POSTGRES_MULTIPLE_DATABASES: postgres_dev,postgres_test
77
#POSTGRES_DB: postgres
88
POSTGRES_USER: postgres
9+
POSTGRES_PASSWORD: postgres_password
910
volumes:
1011
- ./docker/database/create-multiple-postgresql-databases.sh:/docker-entrypoint-initdb.d/create-multiple-postgresql-databases.sh
1112

0 commit comments

Comments
 (0)