Skip to content

Commit

Permalink
fix port (fabric8-services#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbose78 authored and alexeykazakov committed Jul 26, 2017
1 parent 47bce4e commit 42225ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/application_db_calls_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (s *BenchDbOperations) SetupSuite() {
s.DBBenchSuite.SetupSuite()
s.ctx = migration.NewMigrationContext(context.Background())
var err error
s.dbPq, err = sql.Open("postgres", "host=localhost port=5433 user=postgres password=mysecretpassword dbname=postgres sslmode=disable connect_timeout=5")
s.dbPq, err = sql.Open("postgres", "host=localhost port=5432 user=postgres password=mysecretpassword dbname=postgres sslmode=disable connect_timeout=5")
if err != nil {
s.B().Fail()
}
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#------------------------

postgres.host: localhost
postgres.port: 5433
postgres.port: 5432
postgres.user: postgres
postgres.password: mysecretpassword
postgres.database: postgres
Expand Down
2 changes: 1 addition & 1 deletion configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (c *ConfigurationData) setConfigDefaults() {
//---------
c.v.SetTypeByDefaultValue(true)
c.v.SetDefault(varPostgresHost, "localhost")
c.v.SetDefault(varPostgresPort, 5433)
c.v.SetDefault(varPostgresPort, 5432)
c.v.SetDefault(varPostgresUser, "postgres")
c.v.SetDefault(varPostgresDatabase, "postgres")
c.v.SetDefault(varPostgresPassword, "mysecretpassword")
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
db:
image: registry.centos.org/postgresql/postgresql:9.6
ports:
- "5433:5432"
- "5432:5432"
environment:
POSTGRESQL_ADMIN_PASSWORD: mysecretpassword
networks:
Expand Down

0 comments on commit 42225ac

Please sign in to comment.