Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d25f7fe

Browse files
authoredAug 30, 2023
set sslmode paramater and other connection options to be configurable (#4840)
1 parent 1941411 commit d25f7fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ ENV postgres_host ""
6363
ENV postgres_user ""
6464
ENV postgres_pass ""
6565
ENV postgres_db ""
66+
ENV postgres_args "sslmode=prefer"
6667
# The full URL to the IPFS node
6768
ENV ipfs ""
6869
# The etherum network(s) to connect to. Set this to a space-separated

‎docker/start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ run_graph_node() {
6565
else
6666
unset GRAPH_NODE_CONFIG
6767
postgres_port=${postgres_port:-5432}
68-
postgres_url="postgresql://$postgres_user:$postgres_pass@$postgres_host:$postgres_port/$postgres_db?sslmode=prefer"
68+
postgres_url="postgresql://$postgres_user:$postgres_pass@$postgres_host:$postgres_port/$postgres_db?$postgres_args"
6969

7070
wait_for_ipfs "$ipfs"
7171
echo "Waiting for Postgres ($postgres_host:$postgres_port)"

0 commit comments

Comments
 (0)
Failed to load comments.