add postgres with ssl
This commit is contained in:
9
postgres/entrypoint.sh
Normal file
9
postgres/entrypoint.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
chmod 0400 /cert.pem
|
||||
chown postgres:postgres /cert.pem
|
||||
|
||||
chmod 0400 /key.pem
|
||||
chown postgres:postgres /key.pem
|
||||
|
||||
exec "$@"
|
||||
4
postgres/postgresql.conf
Normal file
4
postgres/postgresql.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
ssl = on
|
||||
ssl_cert_file = '/cert.pem'
|
||||
ssl_key_file = '/key.pem'
|
||||
listen_addresses = '0.0.0.0'
|
||||
Reference in New Issue
Block a user