more pg
This commit is contained in:
1 parent
9d93e93525
commit
283342add5
1 file changed
+12
-1
+12
-1
@@ -163,7 +163,18 @@ run chmod +x /usr/bin/git-lfs && git lfs install
|
||||
|
||||
#postgres
|
||||
RUN sudo apt-get update \
|
||||
&& sudo apt-get install postgresql postgresql-contrib -y
|
||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - \
|
||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list \
|
||||
sudo apt-get update \
|
||||
sudo apt-get install postgresql-12 postgresql-client-12 -y
|
||||
|
||||
RUN mkdir -p /var/lib/postgresql/ssl ;\
|
||||
chown postgres:postgres /var/lib/postgresql/ssl ;\
|
||||
cp /etc/ssl/certs/ssl-cert-snakeoil.pem /var/lib/postgresql/ssl/ ;\
|
||||
cp /etc/ssl/private/ssl-cert-snakeoil.key /var/lib/postgresql/ssl/ ;\
|
||||
chown -R postgres:postgres /var/lib/postgresql/ssl/ssl-cert-snakeoil.* ;\
|
||||
chmod 600 /var/lib/postgresql/ssl/* ;\
|
||||
chmod 700 /var/lib/postgresql/ssl
|
||||
#
|
||||
|
||||
##### Onload Stuff #####
|
||||
|
||||
Reference in new issue
Block a user