Skip to content

Commit

Permalink
Correct hostname and 'root' user in PostgreSQL deployment example (#3682
Browse files Browse the repository at this point in the history
)

* Correct hostname and 'root' user in PostgreSQL deployment example

* Can't connect to 'defaultdb' because it doesn't exist yet

* Remove unneeded environment variables
  • Loading branch information
robstradling authored Nov 18, 2024
1 parent e0740d4 commit f8b5406
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/deployment/postgresql/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ services:
dockerfile: examples/deployment/docker/db_server/postgresql/Dockerfile
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRESQL_DATABASE=defaultdb
- POSTGRESQL_USER=test
- POSTGRESQL_PASSWORD=zaphod
restart: always # keep the PostgreSQL server running
trillian-log-server:
build:
Expand All @@ -19,7 +16,7 @@ services:
command: [
"--quota_system=postgresql",
"--storage_system=postgresql",
"--postgresql_uri=postgresql:///defaultdb?host=localhost&user=test&password=zaphod",
"--postgresql_uri=postgresql:///?host=postgresql&user=postgres",
"--rpc_endpoint=0.0.0.0:8090",
"--http_endpoint=0.0.0.0:8091",
"--alsologtostderr",
Expand All @@ -39,7 +36,7 @@ services:
command: [
"--quota_system=postgresql",
"--storage_system=postgresql",
"--postgresql_uri=postgresql:///defaultdb?host=localhost&user=test&password=zaphod",
"--postgresql_uri=postgresql:///?host=postgresql&user=postgres",
"--rpc_endpoint=0.0.0.0:8090",
"--http_endpoint=0.0.0.0:8091",
"--force_master",
Expand Down

0 comments on commit f8b5406

Please sign in to comment.