Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore(contributing): change postgres port #22

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
alias randstring='f() { openssl rand -base64 69 | tr -d "\n" | tr -d "=+/" | cut -c1-$1 };f'

cat > .env <<EOF
DATABASE_URL='postgresql://hatchet:hatchet@127.0.0.1:5433/hatchet'
DATABASE_URL='postgresql://hatchet:hatchet@127.0.0.1:5431/hatchet'
SERVER_TLS_CERT_FILE=./hack/dev/certs/cluster.pem
SERVER_TLS_KEY_FILE=./hack/dev/certs/cluster.key
SERVER_TLS_ROOT_CA_FILE=./hack/dev/certs/ca.cert
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
- POSTGRES_PASSWORD=hatchet
- POSTGRES_DB=hatchet
ports:
- "5433:5432"
- "5431:5432"
volumes:
- hatchet_postgres_data:/var/lib/postgresql/data
rabbitmq:
Expand Down
2 changes: 1 addition & 1 deletion internal/config/database/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

type ConfigFile struct {
PostgresHost string `mapstructure:"host" json:"host,omitempty" default:"127.0.0.1"`
PostgresPort int `mapstructure:"port" json:"port,omitempty" default:"5433"`
PostgresPort int `mapstructure:"port" json:"port,omitempty" default:"5431"`
PostgresUsername string `mapstructure:"username" json:"username,omitempty" default:"hatchet"`
PostgresPassword string `mapstructure:"password" json:"password,omitempty" default:"hatchet"`
PostgresDbName string `mapstructure:"dbName" json:"dbName,omitempty" default:"hatchet"`
Expand Down
Loading